mofron-event-link
v0.2.0
Published
link event for mofron
Downloads
39
Readme
mofron-event-link
mofron is module based frontend framework.
enable link to target component
event function parameter
component: event target component object
event: "click" event object by addEventListener
mixed: user specified parameter
Install
npm install mofron mofron-event-linkSample
<setting>
<tag load="mofron-comp-image">Image</tag>
<tag load="mofron-event-link">Link</tag>
</setting>
<Image event=Link:("https://mofron.github.io/mofron/",true)>./logo.png</Image>
Parameter
| ShortForm | Parameter Name | Type | Description | |:-------------:|:---------------|:-----|:------------| | ◯ | url | string | jump url (default is './') | | ◯ | newtab | boolean | true: jump to url by newtab (default) | | | | | false: jump to url by current tab |
