User interface sections, shown as layout sections in the Johku admin, form the admin menu, that is, the navigation. It is worth creating a new section when you want an item of its own in the menu for a certain work step, for example a reservation view for one category or a second POS device.
Before you start
- You need a user account with the Administrator access level.
- If you want a completely new view in the section, such as your own POS product list or a timeline for only certain products, first create that component and only then the layout section.
Create a layout section
- Go to the Settings → Johku App page and select Layout sections.
- Select New layout section.
- Give the section a name and select OK. The name is shown to the user in the menu, so use a clear word, for example Reservations or Cleaning.
Add columns
The section editor opens. The first step is to create the column or columns that the components are attached to.
- Select Add column.
- Enter an identifier, that is, a name, for the column and select OK. The identifier has no other purpose than telling the columns in the same section apart, but columns in the same section can't have the same identifier.
- Set the column's width. The default width is 4/12. If the section has only one column, change the width to 12/12.
- Repeat the addition if you want several columns. The column widths must add up to 12, so with two columns the width of each is 6/12.
Add components to the column
- Select Add component.
- Choose the component you want from the drop-down menu and confirm the choice.
- Repeat the same for each component you want in the section. The components are shown in the section as tabs.
- Select Save.
Attach the section to a user interface
A finished section isn't shown anywhere yet: you have to add it to the user interfaces you want. You can do it in two ways:
- Edit the user interface on the Settings → Johku App → User interfaces page and add the section under Add layout sections.
- Or open the user interface's edit mode with the pencil icon in the menu and select New section in the menu. See Edit a user interface in the admin.
Result
The section appears in the menu of the user interfaces you attached it to, and the components placed in it open as tabs in the middle of the page. Check that the components are in the order you want.
If something goes wrong
- The section isn't shown in the menu: the section has been created, but it hasn't been attached to a user interface yet. Go through the section "Attach the section to a user interface".
- The columns look wrong or don't fill the width: check that the column widths add up to 12.
- The component you want isn't in the menu: the component hasn't been created yet. See Create a component.
- You can't create a new section in edit mode: the editing tool can only add existing sections. New sections are always created on the Layout sections page.
More information
You also choose an icon for the section that is shown in the menu, for example a calendar in the Reservations section.