Document

Import

import componentObject from 'vn-native-js/componentObject';let cpn = new componentObject()

Params Description
element html div. (String)

Event

cpn.setEvent(key,callback)

Params Description
key click || mouseover || mouseout || change || keyup || keypress ...
callback Callback function if has event
Note If has problem then let try yourcomponent.object.addEventListen(event,callback)

Alert has confirm

cpn.content(value)

Params Description
message Dialog message
value ... (String)

Content html

cpn.contentHTML(HTML)

Params Description
HTML HTML (String)

Attr

cpn.attr(key,value)

Params Description
key id | class | data ... (String)
value any ... (String)

Child component

cpn.childComponent(component)

Params Description
component object component ... (object)

Output

cpn.get()

Params Description
return object component ... (object)

Reset content

cpn.reset()