Fields
name
The name of the view model.
(Coming soon)
Methods
getNumber
getTrigger
getString
Property<string>, or nil when there is none.
getBoolean
Property<boolean>, or nil when there is none.
getColor
Property<Color>, or nil when there is none.
getList
getViewModel
getEnum
instance
getIndex
ViewModelPropertySymbolListIndex) that the view model must declare;
without one every instance returns -1. It is written as the list
changes, so it is already right in the callback that pushed or moved
the view model.
getImage
Property<Image>.
getFont
Property<Font>.
getBlob
Property<Blob>.
getArtboard
Property<BindableArtboard?>: assign one of this file’s
artboards from context:bindableArtboard, one of another file’s from
context:decodeFile and RiveFile:bindableArtboard, or nil to clear
it. An artboard chosen in the editor reads back as nil.