0.0.9 • Published 5 years ago

mofron-comp-switch v0.0.9

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

mofron-comp-sw

mofron is module based frontend framework.

switching display components by 'switching' function.

switching the display to a specified index number of the child component.

switch in ascending order if it has no parameter.

Install

npm install mofron mofron-comp-sw

Sample

<require>
    <tag module="mofron-comp-switch">Switch</tag>
    <tag module="mofron-comp-button">Button</tag>
    <tag module="mofron-event-click">Click</tag>
</require>

<script name=clk run=init>
sw.switching();
</script>

<Switch name=sw event=Click(clk)>
    <Button width=1rem>On</Button>
    <Button width=1rem>OFF</Button>
</Switch>

Parameter

SimpleParamParameter NameTypeDescription
switchEventfunctionswitch event function
mixedevent parameter
0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

7 years ago

0.0.1

7 years ago