0.0.9 • Published 5 years ago

mofron-comp-tree v0.0.9

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

mofron-comp-tree

mofron is module based frontend framework.

tree component for mofron

Install

npm install mofron mofron-comp-tree

Sample

<require>
    <tag module="mofron-comp-tree">Tree</tag>
</require>

<script run=init name=evt>
console.log(evt2.index());
</script>

<Tree baseColor=#fafafa title="mofron" clickEvent=@evt>
    <param>
        <ttlhei>(0.5rem,0.4rem)</ttlhei>
        <speed>500</speed>
    </param>

    <Tree title="Component" elmhei=0.3rem>
        <Tree>Button</Tree>
        <Tree>Header</Tree>
    </Tree>
    <Tree title="Event" elmhei=0.3rem>
        <Tree>Click</Tree>
        <Tree>Drag</Tree>
    </Tree>
</Tree>

Parameter

SimpleParamParameter NameTypeDescription
titlemixedstring: tree text
component: tree text component
indexmixedstring: tree index string
mofron-comp-text: tree index text component
ttlheistring (size)title height
string (size)element title height
elmheistring (size)element title height
switchmofron-comp-switchswitch component
clickEventfunctionfunction for click event
mixedfunction parameter
speednumberfolding speed (millisecond)
heightstring (size)tree height
objectoption
0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.2

7 years ago

0.0.1

7 years ago