1.0.3 • Published 1 year ago

dable-dialog v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

dable-dialog

Install

npm install dable-dialog

Sample

<setting>
    <tag load="dable-dialog">Dialog</tag>
</setting>

<script run=after>
dlg.visible(true);
</script>

<script run=init>
let btn_evt = (b1,b2,b3) => {
    console.log(b1.text().text());
    dlg.visible(false);
}
</script>

<Dialog name=dlg size=(3rem,3rem) button-event=@btn_evt>
    <title>"Dialog"</title>
    <button>OK</button>
    <button>Cancel</button>
</Dialog>

Parameter

ShortFormParameter NameTypeDescription
titlemixedstring: title text
dable-text: title text component
dicttext config
buttonmixedstring: button text
dable-button: dialog button component
dictbutton config
buttonEventfunctionbutton event
mixedevent parameter
closeCompcomponentdialog close component
framedable-framedialog frame component
mainColormixedstring: color name, #hex
array: red, green, blue, (alpha)
optionstyle option
accentColormixedstring: color name, #hex
array: red, green, blue, (alpha)
optionstyle option
heightstring (size)dialog height
undefined: call as getter
dictset size option
headerHeightstring(size)header height
undefined: call as getter
dictset size option
widthstring (size)dialog width
undefined: call as getter