> For the complete documentation index, see [llms.txt](https://developer.magtek.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.magtek.com/api-and-command-reference/dynafamily-programmers-manual/commands/0x18nn-user-interface/0x1830-display-flexible-ui-pages-display-only/ui-page-option-0x01-and-0x02-layout.md).

# UI Page Option 0x01 and 0x02 Layout

The host uses UI Page Option **0x01** to display a page with a title, a maximum of 6 data buttons (2 rows and 3 columns in Landscape Screen Orientation, 3 rows and 2 columns in Portrait Screen Orientation) with text, and maximum 3 functional buttons with a color option of red, green, or yellow.

The host uses UI Page Option **0x01** to display a page with a title, maximum of 4 data buttons (2 rows and 2 columns in Landscape Screen Orientation, 2 rows and 2 columns in Portrait Screen Orientation) with text, and maximum 3 functional buttons with a color option of red, green, or yellow.

The host uses UI Page Option **0x02** to display a page with a title, maximum of 6 data buttons (2 rows and 3 columns in Landscape Screen Orientation, 3 rows and 2 columns in Portrait Screen Orientation) with $Amount, and maximum 3 functional buttons with a color option of red, green, or yellow.

The host uses UI Page Option **0x02** to display a page with a title, maximum of 4 data buttons (2 rows and 2 columns in Landscape Screen Orientation, 2 rows and 2 columns in Portrait Screen Orientation) with $Amount, and maximum 3 functional buttons with a color option of red, green, or yellow.

The button with \*\*$\*\*Amount value is host provided. The title, data buttons text, and functional buttons are labeled with String IDs associated with configured String messages. See [<mark style="color:red;">**Default User Interface String IDs and Strings**</mark>](https://developer.magtek.com/api-and-command-reference/dynafamily-programmers-manual/notifications/0x18nn-from-user-interface/0x1805-user-interface-operation-complete#default-user-interface-string-ids-and-strings-1). When the user presses any button, the device sends a notification to the host to indicate the corresponding button is pressed. See [<mark style="color:red;">**Notification 0x1803 - User Interface Host Action Request**</mark>](https://developer.magtek.com/api-and-command-reference/dynafamily-programmers-manual/notifications/0x18nn-from-user-interface/0x1803-user-interface-host-action-request)**.** After that, the host will decide what to do next.

## Recommended maximum number of characters for this page

* Landscape Screen Orientation:
  * Title text:
    * \~18 Upper case wide size characters (example: “WM”)
    * \~23 Upper case regular size characters (example: “ABC”)
    * \~21 lower case wide size characters (example: “wm”)
    * \~30 lower case regular size characters (example: “abc”)
  * 3-columns data button text:
    * \~5 Upper case wide size characters (example: “WM”)
    * \~8 Upper case regular size characters (example: “ABC”)
    * \~6 lower case wide size characters (example: “wm”)
    * \~9 lower case regular size characters (example: “abc”)
  * 2-columns data button text:
    * \~9 Upper case wide size characters (example: “WM”)
    * \~13 Upper case regular size characters (example: “ABC”)
    * \~9 lower case wide size characters (example: “wm”)
    * \~15 lower case regular size characters (example: “abc”)
  * Functional button text:
    * \~5 Upper case wide size characters (example: “WM”)
    * \~8 Upper case regular size characters (example: “ABC”)
    * \~6 lower case wide size characters (example: “wm”)
    * \~9 lower case regular size characters (example: “abc”)
* Portrait Screen Orientation:
  * Title text:
    * \~13 Upper case wide size characters (example: “WM”)
    * \~17 Upper case regular size characters (example: “ABC”)
    * \~14 lower case wide size characters (example: “wm”)
    * \~20 lower case regular size characters (example: “abc”)
  * 2-columns data button text:
    * \~6 Upper case wide size characters (example: “WM”)
    * \~10 Upper case regular size characters (example: “ABC”)
    * \~7 lower case wide size characters (example: “wm”)
    * \~11 lower case regular size characters (example: “abc”)
  * Functional button text:
    * \~4 Upper case wide size characters (example: “WM”)
    * \~6 Upper case regular size characters (example: “ABC”)
    * \~5 lower case wide size characters (example: “wm”)
    * \~7 lower case regular size characters (example: “abc”)

### The Layout for a page with a title, a maximum of 4 data buttons with text/$Amount, and a maximum of 3 functional buttons:

<figure><img src="https://content.gitbook.com/content/EX5FnWhqBiMGA8wVt4Kn/blobs/YpRVCIunUwKKCQsUswfM/image.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/EX5FnWhqBiMGA8wVt4Kn/blobs/9rSai7BfHdCLtnHkvs6N/image.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/EX5FnWhqBiMGA8wVt4Kn/blobs/DMesV212cLqwCIiiRHL9/image.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/EX5FnWhqBiMGA8wVt4Kn/blobs/kvJa6HoM1P7KsYtcolW2/image.png" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.magtek.com/api-and-command-reference/dynafamily-programmers-manual/commands/0x18nn-user-interface/0x1830-display-flexible-ui-pages-display-only/ui-page-option-0x01-and-0x02-layout.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
