mofron-event-common
v0.4.1
Published
common event for mofron
Downloads
56
Readme
mofron-event-common
mofron is module based frontend framework.
common event for mofron
set addEventListener of target object
it is possible to use addEventListener() for general by setting the parameter of the type method.
event function parameter
component: event target component object
object: event object of addEventListener
mixed: user specified parameter
Install
npm install mofron mofron-event-common
Sample
<setting>
<tag load="mofron-event-common">Common</tag>
</setting>
<script name=evt run=init>
console.log("mouse enter");
</script>
<div size=(1rem,1rem) color2="#f0e6fa">
<event>
<Common>(@evt,mouseenter)</Common>
</event>
</div>
Parameter
| ShortForm | Parameter Name | Type | Description | |:-------------:|:---------------|:-----|:------------| | ◯ | type | string | event type |