TypeScript Function API • Docs
TypeScript Function API / asset_builder / MapKeyFuncBuilder
Class: MapKeyFuncBuilder
Used to add a value to a map
Example
ts
const mapButton = new MapKeyFuncBuilder()
.setKey("Name")
.build()
Implements
Constructors
new MapKeyFuncBuilder()
new MapKeyFuncBuilder():
MapKeyFuncBuilder
Returns
Defined in
Properties
mapKeyFunc
mapKeyFunc:
MapKeyFunc
Defined in
Methods
build()
build():
MapKeyFunc
Build the object
Returns
Example
ts
.build()
Implementation of
Defined in
setKey()
setKey(
key
):this
Set the value of the key for the map entry
Parameters
• key: string
the name of the key
Returns
this
this
Example
ts
.setKey("Name")
Implementation of
Defined in
setValueFrom()
setValueFrom(
valueFrom
):this
DEPRECATED: Set the value of this socket using a ValueFromBuilder. The recommended way to do this is to attach an attribute function.
Parameters
• valueFrom: ValueFrom
Returns
this
this
Example
ts
.setValueFrom(new ValueFromBuilder()
.setKind("prop")
.setPropPath(["root", "si", "name"])
.build())
Implementation of
IMapKeyFuncBuilder
.setValueFrom