Page History
...
Provided property value types
Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
boolean | Boolean value, either true or false | ||||||||||||||||
border | CSS border string representation | ||||||||||||||||
byte | A number, 8 bit unsigned | ||||||||||||||||
color | String color value
| ||||||||||||||||
dataprovider | Reference to a dataprovider, either a record or scope variable. Can be a complex object for supporting onDataChange
| ||||||||||||||||
date | Date value | ||||||||||||||||
dimension | Dimension representation
| ||||||||||||||||
double | A floating point number | ||||||||||||||||
float | A floating point number | ||||||||||||||||
font | CSS font string | ||||||||||||||||
form | URL string pointing to a form (like tab in tabpanel) | ||||||||||||||||
format | Format string. Requires to be specified as object to specify which dataprovider/valuelist property to map this format property on. For property can also contain an array of properties (will be applied to first one which is defined).
| ||||||||||||||||
int | An integer number | ||||||||||||||||
insets | Padding insets representation
| ||||||||||||||||
long | A number, size is twice an integer | ||||||||||||||||
media | Reference to a Media entry. Media can be specified in different ways (plain bytes, media url, media id). | ||||||||||||||||
relation | Reference to a Relation | ||||||||||||||||
protected | boolean security property, can be used to protect the entire component or specific properties or handlers in the component. Configuration:
| ||||||||||||||||
point | Point representation
| ||||||||||||||||
scrollbars | An integer value which represents scrollbar definition. This type is used for designer to display special editor. | ||||||||||||||||
short | A number, 16 bit | ||||||||||||||||
string | Plain string property. I18n keys will be resolved by default. | ||||||||||||||||
styleclass | String with space separated CSS classnames.Possible values supported by the component can be specified as hint for the developer
| ||||||||||||||||
tabSeq | Tab sequence integer value. See sablo-tabseq | ||||||||||||||||
tagstring | String property that can contain %%tags%%, i18n keys or <html>. It can also be a simple static string. Examples:
Here is how this type of property can be configured in the component's .spec file:
or simply (to use default config values):
| ||||||||||||||||
color | String color value
| ||||||||||||||||
point | Point representation
| ||||||||||||||||
dimension | Dimension representation
| ||||||||||||||||
insets | |||||||||||||||||
font | CSS font string | ||||||||||||||||
border | CSS border string | ||||||||||||||||
boolean | Boolean value, either true or false | ||||||||||||||||
styleclass | String with space separated CSS classnames.Possible values supported by the component can be specified as hint for the developer
| ||||||||||||||||
double | A floating point number | ||||||||||||||||
float | A floating point number | ||||||||||||||||
int | An integer number | ||||||||||||||||
long | A number, size is twice an integer | ||||||||||||||||
short | A number, 16 bit | ||||||||||||||||
byte | A number, 8 bit unsigned | ||||||||||||||||
dataprovider | |||||||||||||||||
Code Block | title | Example||||||||||||||||
{
"type": "dataprovider",
"ondatachange": {
"onchange": "onDataChangeMethodID",
"callback": "onDataChangeCallback"
}
"forFoundset" : "myFoundsetPropertyName" // optional; if specified then on the client
// instead of one value you will get an array of values one for each record
// in the viewport of given foundset property (see also 'foundset' property type)
} | valuelist | Reference to a ValueList | |||||||||||||||
form | URL string pointing to a form (like tab in tabpanel) | ||||||||||||||||
format | Format string. Requires to be specified as object to specify which dataprovider property to map this format property on
| ||||||||||||||||
relation | Reference to a Relation | ||||||||||||||||
media | Reference to a Media entry | ||||||||||||||||
date | Date value | ||||||||||||||||
scrollbars | .. | ||||||||||||||||
tabSeq | .. | ||||||||||||||||
protected |
setting | description | example |
---|---|---|
for | list of properties to protect, when not specified the entire component is protected | "for": ["streetname", "updateInfoFunc"] |
blockingOn | when the property is set to this value, protection is active, default: true | "blockingOn": true |
language | js |
---|---|
title | Example |
boolean security property, when set to false the component is protected from client data changes and function calls, data changes from the server are not sent to the client
setting | description | example |
---|---|---|
for | list of properties to protect, when not specified the entire component is protected | "for": ["streetname", "updateInfoFunc"] |
...