/
Phone API Reference - UI Classes (Widgets) - Widget (Base Class) - setProp

Phone API Reference - UI Classes (Widgets) - Widget (Base Class) - setProp

Phone API Reference - UI Classes (Widgets) - Widget (Base Class) - setProp

setProp

Description

Assigns a value to the specified widget property and returns the widget. This function can be used to chain multiple property assignments.

Basic Example: 

exampleObj.setProp(key, value);

Parameters

Name

Required

Type

Default

Description

Name

Required

Type

Default

Description

value

Yes

varied

 

Desired value for the property.

key

Yes

string

 

If provided, value[key] is forced into an array.

Examples

setProp assigns focusable and h

testWidget.setProp('focusable', 1).setProp('h', 100);

 

Related content

Phone API Reference - UI Classes (Widgets) - Widget (Base Class)
Phone API Reference - UI Classes (Widgets) - Widget (Base Class)
More like this
Phone API Reference - UI Classes (Widgets) - Widget (Base Class) - setSoftkey
Phone API Reference - UI Classes (Widgets) - Widget (Base Class) - setSoftkey
More like this
Phone API Reference - UI Classes (Widgets) - Widget (Base Class) - takeFocus
Phone API Reference - UI Classes (Widgets) - Widget (Base Class) - takeFocus
More like this
Phone API Reference - UI Classes (Widgets) - Widget (Base Class) - w/h
Phone API Reference - UI Classes (Widgets) - Widget (Base Class) - w/h
More like this
Phone API Reference - UI Classes (Widgets)
Phone API Reference - UI Classes (Widgets)
More like this
Phone API Reference - UI Classes (Widgets) - Widget (Base Class) - x/y
Phone API Reference - UI Classes (Widgets) - Widget (Base Class) - x/y
More like this

Return to Documentation Home I Return to Sangoma Support