Display options are added during configuration of a service form item. Display options can be used to control behaviour of components or rules and to add styles to the rendered HTML element.

<box shortCode="detail" displayOptions="css-mbn">
....
</box>

Display options prefixed with css- are interpreted as CSS styles and are added to the rendered HTML element as classes without the prefix. e.g., the above would add the "mbn" class to the box.

<div class="mbn">
...
</div>

Display options that are not css- prefixed are interpreted by the specific Glue component that the resulting View Node will use for rendering

Container Styles

Utility classes to configure the display of a container. These may be used to differentiate parts of a form from each other or bring attention to a section. Prefix the display option with css- for it to propagate to the UI.

Display OptionDescription
borderedContainerAdds a border with background around the container node.
lightContainerAdds a border with transparent background around the container node.
alertChanges the container style to an alert box.
plainUsed together with alert to display an alert box with plain settings
infoUsed together with alert to display an alert box with info level
warnUsed together with alert to display an alert box with warning level
error, fatalUsed together with alert to display an alert box with error level
debug, success Used together with alert to display an alert box with error level
smallUsed together with alert to display a condensed version of the alert box

Buttons

Buttons use functional display options rather than CSS utility display options to determine the type of button to use.

Display OptionDescription
buttonContains the basic look and feel and functionality of a button. Automatically added in the css if there’s no other display option in the node.
primaryChanges the button style to primary. Please refer to Design System for more details
secondaryChanges the button style to secondary. Please refer to Design System for more details
linkChanges the button style to link. Please refer to Design System for more details
simpleChanges the button style to link with padding around. Please refer to Design System for more details
smallChanges the button style to small. Please refer to Design System for more details
fillThe button will be wide as much as available space.
hollowChanges the button style to hollow. Please refer to Design System for more details
roundedChanges the button style to rounded. Please refer to Design System for more details
right Float the button to the right. Please refer to Design System for more details
icon-* Renders an icon on the left of the button text. Please refer to Design System for more details
newOpens the button action response to a new window
promptDisplays a confirm dialog when the button is activated.

The following text keys can be provided to configure the dialog:

  • promptHeading
  • promptMsg
  • promptConfirm
  • promptCancel
prompt-small, prompt-medium, prompt-large, prompt-fullSets the width of the popup dialog if button has a confirm prompt message. If any of the size is not present, the default is small. Used only with prompt display option
focusOnErrorThis display option works only in buttons. When the button with this display option is activated, the screen will focus and scroll to the input field with error.

Utilities

Display

Prefix the SFI display option with css- to add the following display option.

Display OptionDescription
clearSets whether the node must be moved below if there’s a floating element the precedes it
inline, inline-block Changes the display to inline-block, causing another inline node to be displayed next to each other in one line
preRetains the white spaces inside the text. Please note this does apply to all text, known usage is hint text.
rightFloat the node to the right.
leftFloat the node to the left.
hide-for-small Hides the node on small screen

Typography

More details and options in Design System Utilities Typography. Prefix the SFI display option with css- to add the following display option.

Display OptionDescription
italicChanges the font style to italic
Please note that this may not apply to all if the node is using a widget that has a specific font styling, eg. attribute label-value
text-size-smallChanges font size to small
css-text-highlightChanges font colour to black (darkest colour)

Margins and Paddings

You can combine "m" for margin or "p" for padding with any of the sizes "x" extra tiny, "t" tiny, "s" – small, "l" – large

Display OptionDescription
mn, pnmargin/padding none
mx, pxmargin/padding extra tiny
mt, ptmargin/padding tiny
ms, psmargin/padding small
ml, plmargin/padding large

Also you can specify margin only for top, left, right or bottom using "t", "l", "r" or "b"

Display OptionDescription
mts, ptsmargin-top/padding-top small
mrs, prsmargin-right/padding-right small
mbs, pbsmargin-bottom/padding-bottom small
mts, ptsmargin-top/padding-top small

Colours

Display OptionDescription
successSets the background, borders and text colour to the success colour palette
warningSets the background, borders and text colour to the warning colour palette
dangerSets the background, borders and text colour to the danger colour palette
0
0

Jump to Section