0.0.3 • Published 2 years ago

mofron-comp-fileselector v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

mofron-comp-fileselector

mofron is module based frontend framework.

file select button component for mofron

Install

npm install mofron mofron-comp-fileselector

Sample

<require>
    <tag load="mofron-comp-fileselector">FileSel</tag>
</require>

<script run=init>
let chg_evt = (p1,p2,p3) => { console.log(p1.value()); }
</script>

<FileSel change-event=@chg_evt size=(2rem,0.3rem)>
    <multiple>true</multiple>
    <text>file select</text>
</FileSel>

Parameter

ShortFormParameter NameTypeDescription
buttonmofron-comp-buttonbutton component
undefined: call as getter
filetxtmixedstring: file name text
mofron-comp-text: file name text component
undefined: call as getter
textstringbutton text
undefined: call as getter
multiplebooleantrue: multiple selector
false: single selector
undefined: call as getter
acceptstringaccept file types
undefined: call as getter
base64Valuestringbase64 value
valuestringvalue string
heightstring(size)button height
undefined: call as getter
key-valuestyle option
widthstring(size)button width
undefined: call as getter
key-valuestyle option
0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

4 years ago