2
ModuleServerAPIProperty
Mees van der Wijk edited this page 2025-08-28 23:18:53 +02:00

ModuleServerApi - Property

Class representing the ModuleServerApi Property.

Functions

setValue

Set the value of the property.

property.setValue(value);
Argument Type Description
value any New value for the property.

getValue

Get the value of the property.

property.getValue();

Returns any Value of the property

asString

Get the value of the property as a string.

property.asString();

Returns string Value of the property

asNumber

Get the value of the property as a number.

property.asNumber();

Returns number Value of the property

asBoolean

Get the value of the property as a boolean.

property.asBoolean();

Returns boolean Value of the property

asFile

Get the value of the property as a file.

property.asFile();

Returns { name:string, address:string } Value of the property

asGiphy

Get the value of the property as a giphy.

property.asGiphy();

Returns { name:string, address:string } Value of the property

Parameters

title

Title of the property

property.title as string;

value

Raw value of the property

property.value as any;

description

Description of the property

property.description as string;

step?

Step size of the property

property.step as number;

min?

The minimal value of the property

property.min as number;

max?

The maximal value of the property

property.max as number;

allowedValues?

Title of the property

property.allowedValues as { id: string; name: string };

allowedTypes?

Title of the property

property.allowedTypes as string[];