RuntimeWebComponent

Extends

Component

Property Summary

TypeNameSummary

CSS position is a replacement for anchoring system making it more intuitive to place a component..

Methods Summary

TypeNameSummary

Gets the specified client property for the element based on a key..

Get the design-time properties of an element..

Get a design-time property of an element..

Returns the type of a specified element..

Returns the name of the form..

Returns the name of an element..

void

Sets the value for the specified element client property key..

Properties Details

cssPosition

CSS position is a replacement for anchoring system making it more intuitive to place a component. CSS position should be set on form, an absolute position form can either work with anchoring or with css position.

This property is only available when the form in is css positioning mode, in responsive mode components don't have this property.

This is only working in NGClient.

Returns CSSPosition

Sample

elements.button.cssPosition.r("10").b("10").w("20%").h("30px")

Methods Details

getClientProperty(key)

Gets the specified client property for the element based on a key.

NOTE: Depending on the operating system, a user interface property name may be available.

Parameters Object key user interface key (depends on operating system)

Returns Object The value of the property for specified key.

Sample

var property = %%elementName%%.getClientProperty('ToolTipText');

getDesignProperties()

Get the design-time properties of an element.

Returns Object

Sample

var prop = forms.orders.elements.mylabel.getDesignProperties()

getDesignTimeProperty(key)

Get a design-time property of an element.

Parameters String key the name of the property

Returns Object

Sample

var prop = forms.orders.elements.mylabel.getDesignTimeProperty('myprop')

getElementType()

Returns the type of a specified element.

Returns String The display type of the element as String.

Sample

var et = %%elementName%%.getElementType();

getFormName()

Returns the name of the form. (may be empty string as well)

Returns String The name of the form.

Sample

var name = %%elementName%%.getFormName();

getName()

Returns the name of an element. (may be null as well)

Returns String The name of the element.

Sample

var name = %%elementName%%.getName();

putClientProperty(key, value)

Sets the value for the specified element client property key.

NOTE: Depending on the operating system, a user interface property name may be available.

Parameters Object key user interface key (depends on operating system) Object value a predefined value for the key

Returns void

Sample

%%elementName%%.putClientProperty('ToolTipText','some text');

Last updated