↓ Skip to main content
A phone screen stitched in thread, its panels, labels and buttons embroidered onto woven fabric

Maximo Mobile UI Components: The Elements That Carry Every App

The MAML reference lists around 250 elements, and the first time you open it you assume you need to know all of them. Open any app IBM ships and the same few dozen elements build nearly every screen. This post is the tour of those few dozen, in the order the shipped apps reach for them.

MAS 9.2 series framework 3.2.8xx

If you have not read the MAML Basics guide, start there. It explains what an element is, how a binding works, and why a warning ships. This post assumes that and asks the next question: of all those elements, which ones do you actually meet?

We answered it by reading. We went through the markup of the apps that IBM ships in the 9.2 series, ranked the elements by how the apps use them, and kept the UI ones from the top of the list. That ranking decided the order, and it stays out of the text, because how often IBM uses a box is no help to you. What helps is knowing what a box owns. This post is a snapshot of a 9.2-series install, and the ranking is the durable part. The pictures come from our Components Explorer, a small Maximo Mobile app we built for these articles, and every fence here runs in it or in a page just like it.

One claim you can test in a minute
#

Open any page in any shipped app and look for a <border-layout>. Inside it you will find some of <top>, <start>, <middle>, <end> and <bottom>, and inside those you will find <box> elements holding <label> and <field>. That skeleton, one layout with five slots and boxes inside, is most of most screens. Everything else in this post hangs off it.

d2 diagram d2 diagram

Seven families, where the containers carry everything else and the lookups and dialogs open from an input or an action.

The seven families, in the order the rest of this post takes them:

  • Containers arrange everything else: the box, the border layout, the adaptive grid and the panel.
  • Text and values show information: the label, the field, the icon and the link.
  • Input edits information: the smart-input and the dropdown.
  • Actions do something: the button and the menu item.
  • Lists and tables show many records: the data-list and the table.
  • Lookups and dialogs open over the page to pick a record or to ask something.
  • The page frame holds the header and the tabs.

Here are four of the families on one page. We drew the outlines into the picture: orange for the tabs of the page frame, blue for the input, green for the actions, and violet for the list. The boxes and the border layouts that hold them are the containers.

Maximo Mobile at tablet width. A page “Work order WO-1001” with the tabs Details and More outlined in orange. Below, two columns of inputs outlined in blue: Description and Location on the left, Target start on the right. Below them a toolbar outlined in green with two round icon buttons and a blue Complete button. At the bottom a list of work orders outlined in violet, each row with a chevron.
Four families on one page, outlined by us: page frame, input, actions and list, in Maximo Mobile at tablet width, in the preview of our MAF editor

Containers
#

<box> is the element you will write most. It arranges its children in a row or a column, it never wraps them, and it takes all the width it can get unless you tell it otherwise. Almost everything sits inside a box, and boxes sit inside boxes. The attributes you will set on nearly every one are direction, the padding on each side, and fill-parent. Reach for a box whenever two things have to sit beside or above each other and nothing more clever is needed.

<border-layout> and its five slots are the skeleton. A border layout owns <top>, <start>, <middle>, <end> and <bottom>, and the rule is simple: the four edges shrink to fit their content and the middle grows to take the rest. That one rule is why a list row looks the way it does, with a status icon at the start, the description in the middle and a chevron at the end. Set fill-parent on the layout, then set vertical-align and width on the slots that need them. The slots take any child, so a slot usually holds a box.

<border-layout id="ex_row" fill-parent="true">
  <start id="ex_row_start" vertical-align="center" width="48px">
    <icon id="ex_row_icon" icon="carbon:wrench" size="24"/>
  </start>
  <middle id="ex_row_middle" vertical-align="center">
    <box id="ex_row_text" direction="column">
      <label id="ex_row_title" label="{item.description}" theme="16-bold"/>
      <label id="ex_row_sub"   label="{item.location}"    theme="14-regular"/>
    </box>
  </middle>
  <end id="ex_row_end" vertical-align="center" horizontal-align="end">
    <icon id="ex_row_chev" icon="carbon:chevron--right" size="20"/>
  </end>
</border-layout>

<adaptive-row> and <adaptive-column> are how a form survives a phone. A row holds columns, and each column declares a width per breakpoint: small-width, medium-width, large-width, xlarge-width. Two columns at half width on a tablet become one column each on a phone, and the markup does not change. Fields and smart inputs go inside the columns. Reach for this the moment a form has more than one column on any screen size.

<panel> is a page inside a page. It lives under a <stacked-panel>, only one panel in the stack is visible at a time, and switching panels is how a page shows a list and then a detail without navigating. It is a non-visual container, so it carries almost no attributes beyond id.

Text and values
#

<label> shows a piece of text. It is the second most common element in the shipped apps and the one with the most surprises, because its theme and color attributes look independent, and they depend on each other. A theme permits only a short list of colours, and a wrong pairing ships as a warning. The MAML Basics guide carries the matrix. Beyond label and theme, the attribute you will set most is wrap.

<field> shows a label and a value together. It is the element of the detail page: a caption above, the bound value below, and label-placement to move the caption beside it. hide-label drops the caption when the layout already says what the value is. A <sub-field> inside it adds a second value under the first, typed with type, which is how a date and a time share one field.

<icon> and <icon-group> carry meaning without words. An icon takes icon, size and fill. An icon group pairs an icon with a label or a second icon, and it is the element behind every status marker with a colour. primary-icon and primary-icon-color do the work, and a warning-label sits ready for the bad case.

<link> is a label that does something. It takes the same navigation attributes as a button, so on-click, a page or a dialog, and it renders as text. Reach for it inside a table column or a sentence; reach for a button everywhere else.

Input
#

<smart-input> is the input. It reads the datasource schema behind its value binding and renders whatever that attribute needs. That can be a text box, a number field, a date picker, a toggle for a yes-no domain, or a lookup button for a related record. That is why IBM’s own guidance says to use it for any value that comes from a datasource, and to leave the plain <text-input> family for values that do not. The attributes you will set are value, label, required, readonly, on-change, and input-kind when the schema is not enough. enable-lookup-buttongroup and select-lookup-attribute wire the lookup.

An adaptive column lays its children side by side, so each column above holds a box that stacks them. On a phone the two columns become one, and a form becomes a single column of inputs:

Maximo Mobile at phone width. A work order form in one column: the work order WO-1001, a required Description, Priority with minus and plus buttons, Location with a search button, Target start with a calendar button, and Work complete as a toggle.
A form of smart-inputs at phone width, in Maximo Mobile, in the preview of our MAF editor
<adaptive-row id="ex_form">
  <adaptive-column id="ex_form_left" small-width="100" medium-width="50" large-width="50">
    <box id="ex_form_left_c" direction="column" fill-parent-horizontal="true">
      <smart-input id="ex_wonum" label="Work order" value="{woDS.item.wonum}" readonly="true"/>
      <smart-input id="ex_desc" label="Description" value="{woDS.item.description}" required="true"/>
    </box>
  </adaptive-column>
  <adaptive-column id="ex_form_right" small-width="100" medium-width="50" large-width="50">
    <box id="ex_form_right_c" direction="column" fill-parent-horizontal="true">
      <smart-input id="ex_status" label="Status" value="{woDS.item.status}"
                   enable-lookup-buttongroup="true" lookup="statusLookup"
                   select-lookup-attribute="status"/>
      <smart-input id="ex_target" label="Target start" value="{woDS.item.targstartdate}"/>
    </box>
  </adaptive-column>
</adaptive-row>

<dropdown-item> is one choice in a <dropdown>. Each item carries text and value, and the dropdown binds the chosen value. Reach for a dropdown when the choices are fixed in the markup; reach for a smart input with a lookup when the choices come from Maximo.

Actions
#

<button> does the thing. It takes label or icon or both, kind for its visual weight, and on-click with an optional on-click-arg to name the handler in the controller. It also takes the navigation attributes directly, so a button can open a page, a dialog, a lookup or a sliding drawer with no controller code at all. Buttons sit inside a <button-group> in a toolbar and inside a smart input as the lookup trigger.

<menu-item> is a button in a menu. It takes the same label, icon and on-click, and the same navigation attributes. Where it lives decides what it is. Inside a <menu-button> it is the overflow menu on a card, and inside a <menu> it is the app’s navigation. A sigoption on it hides the entry from users without that signature option.

Lists and tables
#

<data-list> is the mobile list. It binds a datasource, shows a search box with show-search, and hands each row to a <list-item>. Its appearance follows the datasource’s selection-mode, so checkboxes appear with multiple without any markup of yours. on-item-click opens the detail. The mobile apps use this everywhere a table would appear on the web.

<list-item> is one row. It is a container with almost no attributes of its own, and it usually holds a border layout, which is how the row skeleton at the top of this post gets its shape. child-attribute and tree-label-attribute turn a flat list into a tree.

<table> and <table-column> are the web list. A table binds a datasource, declares can-filter, can-search and rows-per-page, and holds one <table-column> per column with name, label and width. The mobile apps IBM ships contain no table at all, and the web apps are full of them. When you port a screen from one target to the other, the table is the work.

<data-list id="ex_list" datasource="assetDS" show-search="true" on-item-click="openAsset">
  <list-item id="ex_list_item">
    <border-layout id="ex_item_bl" fill-parent="true">
      <middle id="ex_item_mid" vertical-align="center">
        <box id="ex_item_text" direction="column">
          <field id="ex_item_num" label="Asset" value="{item.assetnum}" hide-label="true"/>
          <field id="ex_item_desc" label="Description" value="{item.description}" hide-label="true"/>
        </box>
      </middle>
      <end id="ex_item_end" vertical-align="center">
        <icon-group id="ex_item_status" primary-icon="carbon:circle--filled"
                    primary-icon-color="{item.statusColor}" label="{item.status}"/>
      </end>
    </border-layout>
  </list-item>
</data-list>

The search box of a data-list searches the attributes the datasource names in search-attributes. In the sequence below, “pump” leaves the three work orders whose description holds the word.

Two frames of Maximo Mobile at phone width. First, a data-list with an empty search box and the work orders WO-1001 to WO-1007. Second, the search box reads pump, and the list shows WO-1001 Replace pump seal, WO-1007 Cooling pump does not start and WO-1009 Feed pump vibration check.
A data-list with show-search, before and after a search, in Maximo Mobile at phone width, in the preview of our MAF editor

Lookups and dialogs
#

<lookup> is a list in a dialog. It lives under <dialogs>, binds a datasource, and shows the columns you name in lookup-attributes with a search box from show-search. A smart input or a button opens it by id. The user picks a row and the lookup closes.

<lookup-return> copies the pick back. It sits inside a <lookup-map> and pairs a lookup-field with a datasource-field, one element per attribute you want copied into the record. For the box of a single smart-input, lookup="<id>" with select-lookup-attribute is enough, as Forms and Input Fields shows.

<dialog> is a modal with buttons. It lives under <dialogs>, takes a title, and owns its action buttons through primary-action-text and on-primary-action, with the secondary pair beside them. Its content is yours and it takes any child. A button or a link opens it with dialog="theDialogId", and the controller closes it.

The page frame
#

<header-template> is the top of every page. It takes the title, decides with hide-breadcrumb whether the breadcrumb shows, and carries an icon-name with an icon-action for the one action a page keeps in its header. It is the first child of nearly every page, and the rest of the page is a box below it.

<tab> is one tab inside <tabs>. It takes a label and any children, and a datasource when the tab should load on demand. Tabs are the way a detail page holds more content than one screen, and the way a mobile page avoids a second page.

What is missing from this list, on purpose
#

The elements that outrank half of these in the shipped apps are the data ones: <attribute>, <schema>, <maximo-datasource>, <json-datasource>, <state> and <message>. They are the subject of the data level of this series, and a UI tour that started with them would never reach the screen.

Below these sit another two hundred or so elements. Some you will meet on a specific job, such as the map, the barcode button, the signature button and the rich text editor. Many you will never meet at all, because they exist for one IBM app. The reference has all of them, and now you know which ones to look up first.

What to read next#

The rest of Level 4 takes each family apart:

MAML Basics explains the rules these elements share, and Understanding Your First Maximo Mobile App maps the files they live in. Both follow in this series.


The element reference IBM ships is available on your own MAS install. In the Application Configuration application, open the ? menu and choose Component Documentation. Every element and attribute named above has an entry there, which is the place to look once you know which entry you need.