Page tree

Versions Compared

Key

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

...

Standard types of messages

TypeColor
successgreen
informationinfoblue
warningorange
errorred
Info
titleNote

 There is no default type. A message with no type would not be displayed.

 

 

Panel Messages Attributes:

AttributeTypeInfoDefault value
textstringThe text that would be displayed in the panel message.none
typestringAvailable values: info, success, warning, errornone
Info
titleNote

Both attributes are required!

 

Panel Messages Styling:

 

 

Code Block
languagecss
titleStyle
.panel-msg:empty {
  display: none;
}
.panel-msg {
  padding: 20px 0px 20px 45px;
  p {
      margin: 2px 0px;
      font-family: $light_font;
  }
}
.msg-error {
  color: $msg_error_color;
}
.msg-warning {
  color: $msg_warning_color;
}
.msg-info {
  color: $msg_info_color;
}
.msg-success {
  color: $msg_success_color;
}

 

Panel Messages Examples:

 

Code Block
languagejs
titleExample for Grid Control
var offer_largebGrid = akioma.root.dynObject.getObject('offer_largeb').controller;
// add messages
offer_largebGrid.parent.addPanelMessage({text: 'Deprecated', type: 'warning'})
offer_largebGrid.parent.addPanelMessage({text: 'There was an <u>error</u>', type: 'error'})
offer_largebGrid.parent.addPanelMessage({text: 'There was a tester', type: 'error'})
// remove one message by index
offer_largebGrid.parent.removePanelMessage(1);
// clear all messages
offer_largebGrid.parent.clearPanelMessages();

...