Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

 

Provided property value types

 

TypeDescription
stringPlain String property
tagstringString property that can contain tags (e.g. 'Hello %%name%%') or i18n keys (i18n:com.mycompany.mykey).
Will be preprocessed by Servoy before being provided to web component
colorString color value (e.g. #FFFFFF)
point

Point representation

Example
{
	x: 10, 
	y: 20
}
dimension

Dimension representation

Example
{
	width: 100, 
	height: 20
}
fontCSS Font String
borderCSS Border String
booleanBoolean value, either true or false
styleclass

String with space separated CSS classnames.Possible values supported by the component can be specified as hint for teh developer

Example specifying special classnames supported by the component as hint for the developer
{
	type:'styleclass', 
	values:[
		'btn',
		'btn-default',
		'btn-lg',
		'btn-sm',
		'btn-xs'
	]
}
doubleA floating point number
floatA floating point number
intA number
longA number
shortA number
dataprovider

Reference to Servoy dataprovider. Can be a complex object for supporting onDataChange

Example
{ 
	type:'dataprovider', 
	ondatachange: { 
		onchange: 'onDataChangeMethodID', 
		callback: 'onDataChangeCallback'
	}
}
valuelistReference to Servoy ValueList
formURL string pointing to a form template
format

Format string. Requires to be specified as object to specify which dataprovider property to map this format property on

Example
{
	for: 'dataProviderID',
	type: 'format'
}
relationReference to Servoy Relation
mediaReference to Servoy Media entry
dataDate value
tabSeq..

 

 

Provided property value types are:

  • tagstring: A string that can have tags inside it (so it will be processed by servoy to have tags replaced before it gets to the client)

  •  

  • insets:

  • font:

  • border:

  • boolean: true/false

  • scrollbars:

  • styleclass: a list of css classes separated by space, it can define possible values that will be used in developer editor as suggestion - { type:'styleclass', values:['btn','btn-default','btn-lg','btn-sm','btn-xs']}
  • byte: 

  • double: A floating point number

  • float: A floating point number

  • int: A number

  • long: A number

  • short: A number

  • values: Fixed values can have real/display values.

  • dataprovider: Servoy maps this on a record or scope variable, This can be a complex object: \{ 'type':'dataprovider', 'ondatachange': \{ 'onchange':'onDataChangeMethodID', 'callback':'onDataChangeCallback'\}\} if support for ondatachange is needed.

  • valuelist: Servoy maps this on a valuelist referene

  • form: This property will hold a url point to a form (like a tab in a tabpanel)

  • format: format property, this must be specified with a complex object like: \{'for':'dataProviderID' ,'type':'format'\} so that we know which dataprovider property must be used to map this format property on

  • relation: Servoy maps this on a relation reference

  • media:

  • date: A date type property

See also:

  • No labels