Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

mofron-comp-accordion

mofron43MIT0.3.0

accordion component for mofron

front-end

readme

mofron-comp-accordion

mofron is module based frontend framework.

accordion component for mofron

Attention

  • it needs to height parameter for enabling animation speed.

Install

npm install mofron   mofron-comp-accordion

Sample

<require>
    <tag module="mofron-comp-accordion">Accordion</tag>
    <tag module="mofron-comp-text">Text</tag>
</require>

<Accordion speed=500 title="accordion title" height=0.5rem>
    <Text>accordion contents</Text>
</Accordion>

Parameter

Short
Form
Parameter Name Type Description
title mixed string: title string
| | component: title component
| text mixed sama as the title parameter
| height string (size) accordion height
| key-value style option
| folding boolean true: folding accordion component
| | false: unfolding accordion component
| speed number folding speed [ms]
| changeEvent function change event function
| mixed function parameter