ComboModel

Combo model class, which can be used as record type for listItemTpl and displayValueRenderer configs in TypeScript applications.

Use when Combo's displayField equals text and items are configured with one of the value formats listed below:

items : [
    {value : 'small', text : 'Small'},
    {value : 'medium', text : 'Medium'},
    {value : 'large', text : 'Large'},
]

or

items : [
    ['small', 'Small'],
    ['medium', 'Medium'],
    ['large', 'Large'],
]

or

    items : ['Small', 'Medium', 'Large']

Class provides the value and text data fields for the Combo's list record.

Properties

62

Class hierarchy

isComboModel: Boolean= truereadonly
Identifies an object as an instance of ComboModel class, or subclass thereof.
isComboModel: Boolean= truereadonlystatic
Identifies an object as an instance of ComboModel class, or subclass thereof.
isModelModel
isModelLinkModelLink
isModelStmModelStm
isTreeNodeTreeNode

Editing

copyOfModel
isValidModel

Fields

allFieldsstaticModel
autoExposeFieldsstaticModel
childrenFieldstaticModel
defaultsstaticModel
fieldMapstaticModel
fieldsstaticModel
idFieldstaticModel

Grouping

Identification

keyModel

JSON

jsonModel

Lifecycle

configBase

Linked records

hasLinksModelLink
isLinkedModelLink
recordLinksModelLink

Misc

stmModelStm

Other

$namestaticModel
relationsstaticModel

Parent & children

allChildrenTreeNode
childLevelTreeNode
firstChildTreeNode
isLeafTreeNode
isLoadedTreeNode
isParentTreeNode
isRootTreeNode
lastChildTreeNode
nextSiblingTreeNode
parentTreeNode
parentIdTreeNode

Functions

54

Configuration

applyDefaultsstaticBase

Editing

copyModel
getDataModel
removeModel
setModel

Events

Fields

addFieldstaticModel
getModel
processFieldstaticModel
removeFieldstaticModel

Identification

asIdstaticModel
generateIdstaticModel

JSON

toJSONModel

Lifecycle

destroystaticBase

Misc

equalsModel
initClassstaticBase
isOfTypeNamestaticBase
linkModelLink
mixinstaticBase

Other

Parent & children

appendChildTreeNode
bubbleTreeNode
bubbleWhileTreeNode
containsTreeNode
insertChildTreeNode
isExpandedTreeNode
removeChildTreeNode
traverseTreeNode

Typedefs

1

Fields

2
text: String

Display text for the Combo's list record.

value: String | Number | *

Value for the Combo's list record.