@jtorm/attrs-method
v1.0.0
Published
jTorm Attributes Method
Downloads
16
Readme
jTorm Attributes Method
Manipulate multiple attributes with help of the attribute method.
Install
npm install @jtorm/attrs-method
Properties
| Option | Type | Required | Description |
|--------|----------|----------|--------------------------------------------------------|
| n
| string
| true
| Attribute names. |
| v
| string
| false
| Attribute values. |
| m
| string
| false
| Method a:append, p:prepend, r:remove, (empty):replace. |
Example
div->attrs {
n: 'class,id';
v: 'row,row-1';
m: 'a';
}