0.1.5 • Published 2 years ago

mofron-event-clkfocus v0.1.5

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

mofron-event-clkfocus

mofron is module based frontend framework.

click focus event for mofron

event function parameter

  • component: event target component object

  • boolean: focus flag

  • mixed: user specified parameter

Feature

  • this event notify when enable focus by clicking component and disable focus by clicking the other than that.

Attention

  • not supported focus event by tab key

Install

npm install mofron mofron-event-clkfocus

Sample

<require>
    <tag module="mofron-comp-frame">Frame</tag>
    <tag module="mofron-event-clkfocus">Focus</tag>
</require>
<script name=cevt run=init>
    cevt1.color((true === cevt2) ? "#f0e6fa" : "#FFFFFF");
</script>

<Frame event=Focus:@cevt></Frame>

Parameter

ShortFormParameter NameTypeDescription
statusbooleanfocus status flag
undefined: call as getter