1.0.0 • Published 1 year ago
@jtorm/attrs-method v1.0.0
jTorm Attributes Method
Manipulate multiple attributes with help of the attribute method.
Install
npm install @jtorm/attrs-methodProperties
| 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';
}