EntityProperty
Strongly-typed property associated with an object. Used for reflection, serialization, UI generation, and other introspection-dependent tasks.
Samples:
Extends
Constructors
new EntityProperty()
new EntityProperty(
dart
):EntityProperty
Parameters
Parameter | Type |
---|---|
dart | any |
Returns
Overrides
Source
Properties
Property | Modifier | Type | Inherited from |
---|---|---|---|
dart | readonly | any | Property .dart |
options | public | any | Property .options |
Accessors
caption
get
caption():string
set
caption(s
):void
Parameters
Parameter | Type |
---|---|
s | string |
Returns
string
Source
category
get
category():string
Property category
set
category(s
):void
Parameters
Parameter | Type |
---|---|
s | string |
Returns
string
Source
choices
get
choices():string
[]
List of possible values of that property. PropertyGrid will use it to populate combo boxes.
set
choices(x
):void
Parameters
Parameter | Type |
---|---|
x | string [] |
Returns
string
[]
Source
columnFilter
get
columnFilter():null
|"string"
|"bigint"
|"object"
|"int"
|"double"
|"bool"
|"byte_array"
|"datetime"
|"qnum"
|"dataframe"
|"categorical"
|"numerical"
Column type filter
Returns
null
| "string"
| "bigint"
| "object"
| "int"
| "double"
| "bool"
| "byte_array"
| "datetime"
| "qnum"
| "dataframe"
| "categorical"
| "numerical"
Source
defaultValue
get
defaultValue():any
Default value
set
defaultValue(s
):void
Parameters
Parameter | Type |
---|---|
s | any |
Returns
any
Source
description
get
description():string
Description
set
description(s
):void
Parameters
Parameter | Type |
---|---|
s | string |
Returns
string
Source
editor
get
editor():string
Property editor
set
editor(s
):void
Parameters
Parameter | Type |
---|---|
s | string |
Returns
string
Source
format
get
format():string
set
format(s
):void
Parameters
Parameter | Type |
---|---|
s | string |
Returns
string
Source
get
get
get():PropertyGetter
<any
,any
>
Property getter is a function that accepts one parameter (item) and returns the property value.
set
get(x
):void
Parameters
Parameter | Type |
---|---|
x | PropertyGetter <any , any > |
Returns
PropertyGetter
<any
, any
>
Source
includeInLayout
get
includeInLayout():boolean
Applies to viewers properties whether to include the property in the layout or not.
set
includeInLayout(s
):void
Parameters
Parameter | Type |
---|---|
s | boolean |
Returns
boolean
Source
max
get
max():number
set
max(s
):void
Parameters
Parameter | Type |
---|---|
s | number |
Returns
number
Source
min
get
min():number
set
min(s
):void
Parameters
Parameter | Type |
---|---|
s | number |
Returns
number
Source
name
get
name():string
Property name
set
name(s
):void
Parameters
Parameter | Type |
---|---|
s | string |
Returns
string
Source
nullable
get
nullable():boolean
Nullable
set
nullable(s
):void
Parameters
Parameter | Type |
---|---|
s | boolean |
Returns
boolean
Source
propertyType
get
propertyType():TYPE
Property type
set
propertyType(s
):void
Parameters
Parameter | Type |
---|---|
s | TYPE |
Returns
Source
semType
get
semType():string
Semantic type
set
semType(s
):void
Parameters
Parameter | Type |
---|---|
s | string |
Returns
string
Source
set
get
set():PropertySetter
<any
,any
>
Property setter
set
set(x
):void
Parameters
Parameter | Type |
---|---|
x | PropertySetter <any , any > |
Returns
PropertySetter
<any
, any
>
Source
showPlusMinus
get
showPlusMinus():string
Whether a plus/minus clicker appears next to the number input. Applies to numerical columns only.
set
showPlusMinus(s
):void
Parameters
Parameter | Type |
---|---|
s | string |
Returns
string
Source
showSlider
get
showSlider():string
Whether a slider appears next to the number input. Applies to numerical columns only.
set
showSlider(s
):void
Parameters
Parameter | Type |
---|---|
s | string |
Returns
string
Source
step
get
step():number
set
step(s
):void
Parameters
Parameter | Type |
---|---|
s | number |
Returns
number
Source
userEditable
get
userEditable():boolean
set
userEditable(s
):void
Parameters
Parameter | Type |
---|---|
s | boolean |
Returns
boolean
Source
Methods
fromOptions()
fromOptions(
opt
?):Property
Applies the specified options
Parameters
Parameter | Type |
---|---|
opt ? | PropertyOptions |
Returns
Inherited from
Source
bool()
static
bool(name
,getter
,setter
,defaultValue
):Property
Creates a bool property
Parameters
Parameter | Type |
---|---|
name | string |
getter | PropertyGetter <any , any > |
setter | PropertySetter <any , any > |
defaultValue | any |
Returns
Inherited from
Source
create()
static
create(name
,type
):EntityProperty
Creates a property
Parameters
Parameter | Type |
---|---|
name | string |
type | string |
Returns
Overrides
Source
dateTime()
static
dateTime(name
,getter
,setter
,defaultValue
):Property
Creates a datetime property
Parameters
Parameter | Type |
---|---|
name | string |
getter | PropertyGetter <any , any > |
setter | PropertySetter <any , any > |
defaultValue | any |
Returns
Inherited from
Source
float()
static
float(name
,getter
,setter
,defaultValue
):Property
Creates a float property
Parameters
Parameter | Type |
---|---|
name | string |
getter | PropertyGetter <any , any > |
setter | PropertySetter <any , any > |
defaultValue | any |
Returns
Inherited from
Source
fromOptions()
static
fromOptions(options
):Property
Parameters
Parameter | Type |
---|---|
options | PropertyOptions |
Returns
Inherited from
Source
int()
static
int(name
,getter
,setter
,defaultValue
):Property
Creates an integer property
Parameters
Parameter | Type |
---|---|
name | string |
getter | PropertyGetter <any , any > |
setter | PropertySetter <any , any > |
defaultValue | any |
Returns
Inherited from
Source
js()
static
js(name
,type
,options
?):Property
Creates property for the JavaScript objects with the corresponding property name
Parameters
Parameter | Type |
---|---|
name | string |
type | TYPE |
options ? | PropertyOptions |
Returns
Inherited from
Source
jsBool()
static
jsBool(name
,options
?):Property
Parameters
Parameter | Type |
---|---|
name | string |
options ? | PropertyOptions |
Returns
Inherited from
Source
jsDateTime()
static
jsDateTime(name
,options
?):Property
Parameters
Parameter | Type |
---|---|
name | string |
options ? | PropertyOptions |
Returns
Inherited from
Source
jsFloat()
static
jsFloat(name
,options
?):Property
Parameters
Parameter | Type |
---|---|
name | string |
options ? | PropertyOptions |
Returns
Inherited from
Source
jsInt()
static
jsInt(name
,options
?):Property
Parameters
Parameter | Type |
---|---|
name | string |
options ? | PropertyOptions |
Returns
Inherited from
Source
jsString()
static
jsString(name
,options
?):Property
Parameters
Parameter | Type |
---|---|
name | string |
options ? | PropertyOptions |
Returns
Inherited from
Source
registerAttachedProperty()
static
registerAttachedProperty(typeName
,property
):void
Registers the attached (dynamic) property for the specified type. It is editable via the context panel, and gets saved into the view layout as well. Property getter/setter typically uses Widget's "temp" property for storing the value.
Parameters
Parameter | Type |
---|---|
typeName | string |
property | Property |
Returns
void
Inherited from
Property
. registerAttachedProperty
Source
string()
static
string(name
,getter
,setter
,defaultValue
):Property
Creates a string property
Parameters
Parameter | Type |
---|---|
name | string |
getter | PropertyGetter <any , any > |
setter | PropertySetter <any , any > |
defaultValue | any |