Interface: MHeading

MHeading

Extends

Methods

addRightIcon(iconClass, onClick)

Adds an icon to the far right side of the header.
Parameters:
Name Type Description
iconClass String The classname of the icon to use (see Ionicons).
onClick function Callback function for when the icon is clicked.

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

getId() → {ID}

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

getLabel() → {String}

Returns the label shown on the header.
Returns:
- The shown label.
Type
String

getRightIcon()

Returns the far right side icon.
Parameters:
Type Description
Object The icon.

getValue() → {Object}

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

hide()

Hides the widget.
Inherited From:

isEnabled() → {Boolean}

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

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:

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 shown on the header.
Parameters:
Name Type Description
label String The new label.
Overrides:

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:

show()

Shows the widget.
Overrides: