comindware.core.ui
Version:
Comindware Core UI provides the basic components like editors, lists, dropdowns, popups that we so desperately need while creating Marionette-based single-page applications.
32 lines (31 loc) • 1.01 kB
JavaScript
export default function() {
return new Core.layout.VerticalLayout({
rows: [
new Core.layout.Button({
text: 'Leaving warnng',
customClass: 'btn-large',
handler() {
Core.services.MessageService.showSystemMessage({
type: 'unsavedChanges'
});
}
}),
new Core.layout.Button({
text: 'Generic message',
customClass: 'btn-large',
handler() {
Core.services.MessageService.showMessageDialog('My Message!', 'Title', [
{
text: 'firstT',
handler: () => {}
},
{
text: 'secondT',
handler: () => {}
}
]);
}
})
]
});
}