1.0.0 • Published 9 months ago

@jtorm/attrs-method v1.0.0

Weekly downloads
-
License
GPL-3.0
Repository
gitlab
Last release
9 months ago

jTorm Attributes Method

Manipulate multiple attributes with help of the attribute method.

Install

npm install @jtorm/attrs-method

Properties

OptionTypeRequiredDescription
nstringtrueAttribute names.
vstringfalseAttribute values.
mstringfalseMethod a:append, p:prepend, r:remove, (empty):replace.

Example

div->attrs {
    n: 'class,id';
    v: 'row,row-1';
    m: 'a';
}
1.0.0

9 months ago

0.0.4

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago