diff --git a/docs/index.html b/docs/index.html index fecc7b7..7ac2b38 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,176 +1,187 @@ - - - - - CoCreate-conditional-logic Documentation | CoCreateJS - - - - - + + + + + CoCreate-conditional-logic Documentation | CoCreateJS + + + + + - - - + + + - - - - - -
-
-
-
-
-

CoCreate-conditional-logic

-
-
-
- - -
- -
+ + + + + +
+
+
+
+
+

CoCreate-conditional-logic

+
+
+
+ -

- Simple JS component show   hide elements conditionally with - inputs,checkbox,radio,btn etc.Great for creating tabs, - accordions, dynamic forms, etc. Easy Configuration using HTML5 - data attributes and/or JavaScript API -

-
-
-
- -

Install

- -
-
-
npm i @cocreate/conditional-logic
-

- Or you can use cdn link: -

-
<script>https://cdn.cocreate.app/conditional-logic/latest/CoCreate-conditional-logic.min.js</script>
+ +
+ +
+
+

+ Simple JS component show   hide elements conditionally with + inputs,checkbox,radio,btn etc.Great for creating tabs, accordions, + dynamic forms, etc. Easy Configuration using HTML5 data attributes + and/or JavaScript API +

+
+
+
+ +

Install

+ +
+
+
npm i @cocreate/conditional-logic
+

+ Or you can use cdn link: +

+
<script>https://cdn.cocreate.app/conditional-logic/latest/CoCreate-conditional-logic.min.js</script>
-
- -

Usage

- -
-
-
-

- This is conditional-logic usage -

+
+ +

Usage

+ +
+
+
+

+ This is conditional-logic usage +

-
-
+            
+
                                 
     <h5 style='color:blue'>Toggle</h5>
     <div hide='#testdiv,#div2'  show='.testdiv,.div2'>
@@ -180,169 +191,164 @@ 

Usage

<div id="div2" class="hidden div2"> Only SHOW2</div>
-
-

- This is conditional-logic usage -

-
+
+

+ This is conditional-logic usage +

+
-
- -

Attributes

- -
-
-
    -
  • -

    - show - string - optional -

    -

    selector of elements to display

    -
  • -
  • -

    - hide - string - optional -

    -

    selector of elements to hide

    -
  • -
-
+
+ +

Attributes

+ +
+
+
    +
  • +

    + show + string + optional +

    +

    selector of elements to display

    +
  • +
  • +

    + hide + string + optional +

    +

    selector of elements to hide

    +
  • +
+
-
- -
- -

Demo

- -
-
-
- -
-
- -
-
+
+ +
+ +

Demo

+ +
+
+
+ +
+
+ +
+
-
-
-
+
+
+
-
- - - - - -
-
- -
-
+
+ + + + + +
- -
+ +
+ + + +
- - + +