0.5.0 • Published 4 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
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