Manipulate multiple attributes with help of the attribute method.
npm install @jtorm/attrs-method
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. |
div->attrs {
n: 'class,id';
v: 'row,row-1';
m: 'a';
}