0.2.1 • Published 4 years ago

mofron-effect-synchei v0.2.1

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

mofron-effect-synchei

mofron is module based frontend framework.

synchronize height of target component and height of effect component

this effect resizes height of a target component when the height of the target component changed.

Install

npm install mofron mofron-effect-synchei

Sample

<setting>
    <tag load="mofron-comp-text">Text</tag>
    <tag load="mofron-comp-frame">Frame</tag>
    <tag load="mofron-effect-synchei">SyncHei</tag>
</setting>
<Frame name=frm size=(3rem,1rem)>
    <Text effect=SynHei:(@frm,"-0.3rem")>Sync Height</Text>
</Frame>

Parameter

ShortFormParameter NameTypeDescription
targetCompmofron.class.Componenttarget component
undefined: call as getter
offsetstring(size)offset value (default is '0rem')
undefined: call as getter