Interface: MSelect

MSelect

Extends

Methods

addRecord(item)

Adds a record to the select.
Parameters:
Name Type Description
item Record The record to add.

addRecord(item)

Adds a record to the select.
Parameters:
Name Type Description
item Record The record to add.

get(name) → {Object}

Gets the value of the specified property.
Parameters:
Name Type Description
name String The name of the property.
Inherited From:
Returns:
- The property's value.
Type
Object

getEnumValue() → {Record}

Returns the integer value of the currently selected enum. Note: Only works when the widget is coupled to an enum attribute.
Returns:
- The currently selected record.
Type
Record

getId() → {ID}

Returns the ID of the widget.
Inherited From:
Returns:
- The ID of the widget
Type
ID

getOptions() → {Array}

Returns the currently selectable options
Returns:
- An array of all of the currently selectable options.
Type
Array

getSelectedRecord() → {Record}

Returns the currently selected record
Returns:
- The currently selected record.
Type
Record

getValue() → {Object}

Returns the widget's value.
Inherited From:
Returns:
- The widget's value.
Type
Object

hide()

Hides the widget.
Inherited From:

isEmpty() → {Boolean}

Checks if the select has no selectable options.
Returns:
- True if there are no selectable options, otherwise false.
Type
Boolean

isEnabled() → {Boolean}

Returns true if the widget is enabled.
Inherited From:
Returns:
- True if enabled, otherwise false.
Type
Boolean

reload()

Refreshes the widget.

set(name, value)

Sets the value of the specified property.
Parameters:
Name Type Description
name String The name of the property.
value Object The new value.
Inherited From:

setDisplayValue() → {String}

Sets the widget's displayed value.
Returns:
- The new displayed value.
Type
String

setEnabled(Enabled)

Enables/disables the widget.
Parameters:
Name Type Description
Enabled Boolean True to enable the widget, false to disable.
Inherited From:

setLabel(Label)

Sets the label on the button.
Parameters:
Name Type Description
Label String Text or HTML to set as the label on this button.
Overrides:

setOptions(options)

Sets widget's selectable options to the options in the provided array.
Parameters:
Name Type Description
options Object | Array An object or array containing option values.

setStyle(Object)

Set the widget-style
Parameters:
Name Type Description
Object Object with style-properties
Inherited From:

setValue()

Sets the widget's value.
Parameters:
Type Description
Object The new value.
Overrides:

setValueAndReload(value)

Sets the widget's value and refreshes the widget.
Parameters:
Name Type Description
value Object The new value

show()

Shows the widget.
Overrides: