https://github.com/simpart/mofron-comp-switch
switch component for mofron
https://github.com/simpart/mofron-comp-switch
Last synced: 6 months ago
JSON representation
switch component for mofron
- Host: GitHub
- URL: https://github.com/simpart/mofron-comp-switch
- Owner: simpart
- License: mit
- Created: 2018-12-02T14:43:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-15T00:24:04.000Z (over 6 years ago)
- Last Synced: 2025-09-23T14:44:15.907Z (10 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mofron-comp-sw
[mofron](https://mofron.github.io/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
```html
Switch
Button
Click
sw.switching();
On
OFF
```
# Parameter
|Simple
Param | Parameter Name | Type | Description |
|:--------------:|:---------------|:-----|:------------|
| | switchEvent | function | switch event function |
| | | mixed | event parameter |