Skip to content
sjarvela edited this page Oct 17, 2015 · 1 revision

Creating a dialog with view & model, use Kloudspeaker module kloudspeaker/ui/dialogs:

dialogs.custom({
    title: 'My Dialog Title',
    model: 'my-package/module',
    buttons: [{
        id: "no",
        "title": kloudspeaker.ui.texts.get('dialogClose')
    }]
});

Optionally, view can be defined with view.

For options model and view, see Composition.

Example for dialog is user dialog: model and view

Clone this wiki locally