0.5.0 • Published 4 years ago

mofron-comp-menu v0.5.0

Weekly downloads
63
License
MIT
Repository
github
Last release
4 years ago

mofron-comp-menu

mofron is module based frontend framework.

menu component for mofron

Feature

  • configure the displayed contents when users click the menu by "contents" parameter
  • "horizon" parameter is config that is horizontal menu item or vertical menu item

Install

npm install mofron mofron-comp-menu

Sample

<setting>
    <tag module="mofron-comp-txtframe">TxtFrame</tag>
    <tag module="mofron-comp-menu">Menu</tag>
</setting>

<Menu offset=-0.01rem horizon=true>
    <item size=(1.5rem,0.5rem)>
        <TxtFrame>menu 1</TxtFrame>
        <TxtFrame>menu 2</TxtFrame>
        <TxtFrame>menu 3</TxtFrame>
    </item>
</Menu>

Parameter

ShortFormParameter NameTypeDescription
horizonbooleanset/unset horizontal mode
selectnumberselect menu item index
reselectbooleantrue: call event when items are duplicates selected
false: ignored when items are duplicates selected default
selectEventfunctionselect event function
mixedselect event parameter
itemmixedcomponent: menu items component
array: menu items list
offsetstring(size)offset value
mainColormixedstring: menu item color name, #hex
array: red, green, blue, (alpha)
optionstyle option
baseColormixedstring: color name, #hex
array: red, green, blue, (alpha)
optionstyle option
accentColormixedstring: color name, #hex
array: red, green, blue, (alpha)
optionstyle option
0.5.0

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.14

5 years ago

0.3.13

5 years ago

0.3.12

5 years ago

0.3.11

5 years ago

0.3.10

5 years ago

0.3.9

5 years ago

0.3.8

5 years ago

0.3.6

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago