Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This window example is executed on main window init. It's adding an error message after 3 seconds and after 1 more second it clear all messages.

Code Block
titleWindow example
akioma.buildMainLayoutTabs = function (self) {
  if (self.controller) {
    setTimeout(()=> {
      self.controller.addWindowMessage({
        text: 'An new message',
        type: 'error'
      })
    }, 3000)
	setTimeout(()=> {
	  self.controller.clearWindowMessage();
  	}, 5000)
  }
Info
titleNote

This is not the whole content of the buildMainLayoutTabs function.