Variable: attr
constattr:object
Defined in: attributes.ts:238
Grouped attribute helpers.
Type Declaration
action
action: (
identifier,method,event?,options?) =>AttrSpec=stimulusAction
Parameters
identifier
string
method
string
event?
string
options?
Returns
combine
combine: (...
specs) =>AttrSpec
Merge multiple AttrSpecs onto a single element. Throws on duplicate controller identifier.
Parameters
specs
...AttrSpec[]
Returns
controller
controller: (
identifier,values?,classes?,outlets?) =>AttrSpec=stimulusController
Parameters
identifier
string
values?
Record<string, unknown>
classes?
Record<string, string>
outlets?
Record<string, string>
Returns
target
target: (
identifier, ...targetNames) =>AttrSpec=stimulusTarget
Parameters
identifier
string
targetNames
...string[]