servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListNGClientservoy sReturnTypes2100%height: 30px;2ExtendssWordListBLOCKservoy sSummary12%30%58%height: 30px;3Property SummaryEnables a component to stick to a specific side of form and/or to grow or shrink when a window is resized.CSS position is a replacement for anchoring system making it more intuitive to place a component.The enable state of the component, default true.The Z index of this component.The height in pixels of the component.The name of the component.The webcomponent type (name from the spec).The visible property of the component, default true.The width in pixels of the component.The x coordinate of the component on the form.The y coordinate of the component on the form.servoy sSummary12%30%58%height: 30px;3Methods SummaryGet the value of an attribute of the element.Returns the attribute names of an element.Get a design-time property of an element.Get the design-time properties of an element.Returns the name of the form.Returns the JSMethod handler with the given name.Get the design-time value of the given property.Returns the UUID of this component.Set a design-time property of an element.Remove the attribute of an element.Clear a design-time property of an element.voidSimilar to resetJSONProperty but for handlers.voidReset the design-time value of the given property.voidSet the attribute value of an element.voidSet the JSMethod handler for the given handler name.voidSet the design-time value for the given property.propertyservoy sDetail2100%height:30px2Property Detailsanchorsname
anchors
dessIndent
Enables a component to stick to a specific side of form and/or to
grow or shrink when a window is resized.
If opposite anchors are activated then the component with grow or
shrink with the window. For example if Top and Bottom are activated,
then the component will grow/shrink when the window is vertically
resized. If Left and Right are activated then the component
will grow/shrink when the window is horizontally resized.
If opposite anchors are not activated, then the component will
keep a constant distance from the sides of the window which
correspond to the activated anchors.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowcssPositionname
cssPosition
dessIndent
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 is only working in NGClient.
ret
Returns
sIndentclients
Supported Clients
sIndentNGClientsam
Sample
sIdentjavascriptlastDetailRowenabledname
enabled
dessIndent
The enable state of the component, default true.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowformIndexname
formIndex
dessIndent
The Z index of this component. If two components overlap,
then the component with higher Z index is displayed above
the component with lower Z index.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowheightname
height
dessIndent
The height in pixels of the component.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRownamename
name
dessIndent
The name of the component. Through this name it can also accessed in methods.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowtypeNamename
typeName
dessIndent
The webcomponent type (name from the spec).
ret
Returns
sIndentclients
Supported Clients
sIndentNGClientsam
Sample
sIdentjavascriptlastDetailRowvisiblename
visible
dessIndent
The visible property of the component, default true.
Reset the design-time value of the given property.
This makes it as if it was never set. It can be useful when working with form inheritance.
prs
Parameters
sIndentpropertyNamethe name of the property to resetclients
Supported Clients
sIndentNGClientsam
Sample
sIdentjavascriptlastDetailRowsetAttributename
setAttribute(name, value)
dessIndent
Set the attribute value of an element.
prs
Parameters
sIndentnamethe name of the attributevaluethe value of the attributeclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowsetHandlername
setHandler(handlerName, method)
dessIndent
Set the JSMethod handler for the given handler name. The handlerName is checked for existence in the component spec file, if the component does not declare this handler, an error is thrown.
If the handler is already set, it will be replaced with the new JSMethod.
prs
Parameters
sIndenthandlerNamethe name of the handler to getmethodthe JSMethod to attach to the handler (can be also JSMethod that has arguments)clients
Supported Clients
sIndentNGClientsam
Sample
sIdentjavascriptlastDetailRowsetJSONPropertyname
setJSONProperty(propertyName, value)
dessIndent
Set the design-time value for the given property. For primitive property types you can just set the value.
For more complex property types you can set a JSON value similar to what would be generated in the .frm file if you would design what you need using editor/properties view.
Some property types can be assigned values in the runtime accepted format (for example border, font typed properties have a string representation at runtime and here as well).
prs
Parameters
sIndentpropertyNamethe name of the property to setvaluethe new value of the propertyclients