1.0.0 • Published 8 months ago

@jtorm/if-method v1.0.0

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

jTorm If Method

If / Else method.

Install

npm install @jtorm/if-method

Properties

OptionTypeRequiredDescription
ddatatrueData.
vregexfalseTest the data within the if scope using a regexp or boolean.
elstringfalseElement to check if exists.
tostringfalseType check, check if array, string, number, etc for example.

Example

body->append {
  ->if {
    d: component;
    
    ->ui {
      component: component;
    }
    
    ->else {
      ->ui {
        component: "list.default";
      }
    }
  }
}
1.0.0

8 months ago

0.0.4

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago