1.0.0 • Published 8 months ago

@jtorm/attr-method v1.0.0

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

jTorm Attribute Method

Manipulate an attribute with help of the getAttribute method.

Install

npm install @jtorm/attr-method

Properties

OptionTypeRequiredDescription
nstringtrueAttribute name.
vstringtrueAttribute value (not required when method=remove).
mstringfalseMethod a:append, p:prepend, r:remove, (empty):replace.
nsbooleanfalseAdd no white space between existing attribute value(s).
astringfalseAppend to value.
pstringfalsePrepend to value.

Example

div->attr {
    n: 'class';
    v: 'row';
    m: 'a';
}
1.0.0

8 months ago

0.0.4

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago