Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

 

Example of panel message on form, type info
akioma.swat.form.addPanelMessage({
    text: 'An info message',
    type: 'info'
})


Example on form with handlebars template, type error
akioma.swat.form.addPanelMessage({
    text: '{{selfno}} is not unique. Try again',
    type: 'error'
})
Example on form, delete panel message with id = 0
akioma.swat.form.removePanelMessage(0)
Example for form, clear all panel messages
akioma.swat.form.clearPanelMessage()
Example on grid with handlebars, type warning
akioma.swat.grid.addPanelMessage({
    text: 'Currency is {{currencydesc}}',
    type: 'warning'
})
Example on grid with handlebars, type success
akioma.swat.grid.addPanelMessage({
    text: 'Customer is set to {{customerdesc}}',
    type: 'success'
})
??
Example on window, type success
akioma.swat.window.addWindowMessage({
    text: 'An window message',
    type: 'success'
})
Example on window, type warning
akioma.swat.window.addWindowMessage({
    text: 'Something went wrong',
    type: 'warning'
})
Example on window, clear all messages
akioma.swat.window.clearWindowMessage()
Example on dataview, type info
akioma.swat.dataview.addPanelMessage({
    text: 'Info message',
    type: 'info'
})
  • No labels