// ► import library
import * as devinux from 'clientcomponent.js';
// ► render base element
const body = document.getElementByTagName('body');
new devinux.DevinuxClientComponentButton().renderload(body);
// ► import library
import * as devinux from 'clientcomponent.js';
// ► render base element
const body = document.getElementByTagName('body');
new devinux.DevinuxClientComponentButton()
.renderload(body)
.setCaption('My Button')
.setIcon('fad fa-user')
.onEvent(
devinux.DevinuxClientComponentButton._event_enum.click,
() => {
alert('clicked me');
}
);