TemplateState
Type class
A state of a Template, passed on to every object that uses the template.
Sources
This information about TemplateState is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
TemplateState does not extend any other symbol.
TemplateState is not extended by any other symbol.
Settings
Set these settings on a TemplateState object using its set() and setAll() methods. Read about settings concept.
TemplateState does not have any settings.
Properties
TemplateState does not have any properties.
Methods
constructor(name:string,
template:Template,
settings:Partial)Returns
TemplateStateget(key:Key)Returns
[""]Returns the state's value of setting
key, orfallbackif it has none.remove(key:Key)Returns
voidRemoves setting
keyfrom the state.set(key:Key,
value:[""])Returns
voidSets the value setting
keytakes in this state, for every object that uses the template.setAll(settings:Partial)Returns
voidSets several of the state's settings at once.
Events
TemplateState does not have any events.