0.5.0 • Published 5 years ago
mofron-comp-menu v0.5.0
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
ShortForm | Parameter Name | Type | Description |
---|---|---|---|
horizon | boolean | set/unset horizontal mode | |
select | number | select menu item index | |
reselect | boolean | true: call event when items are duplicates selected | |
false: ignored when items are duplicates selected default | |||
selectEvent | function | select event function | |
mixed | select event parameter | ||
◯ | item | mixed | component: menu items component |
array: menu items list | |||
offset | string(size) | offset value | |
mainColor | mixed | string: menu item color name, #hex | |
array: red, green, blue, (alpha) | |||
option | style option | ||
baseColor | mixed | string: color name, #hex | |
array: red, green, blue, (alpha) | |||
option | style option | ||
accentColor | mixed | string: color name, #hex | |
array: red, green, blue, (alpha) | |||
option | style option |
0.5.0
5 years ago
0.4.2
5 years ago
0.4.1
5 years ago
0.4.0
5 years ago
0.3.14
6 years ago
0.3.13
6 years ago
0.3.12
6 years ago
0.3.11
6 years ago
0.3.10
6 years ago
0.3.9
6 years ago
0.3.8
6 years ago
0.3.6
6 years ago
0.3.5
6 years ago
0.3.4
6 years ago
0.3.3
6 years ago
0.3.2
7 years ago
0.3.1
7 years ago
0.3.0
7 years ago
0.2.4
7 years ago
0.2.3
7 years ago
0.2.2
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.3
8 years ago
0.1.2
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago
0.0.6
8 years ago
0.0.5
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago