App itemsΒΆ

Items are elements that are displayed in the menu of your app. Currently the following types of items are supported:

  • Folder: It just groups other items into a folder in the menu.

  • Table: Displays information from tables. It has properties to filter data, to select which columns to display, etc.

Examples:

items:
  - title: Catalogs
    items:
      - title: Countries
        table: countries
        sortBy:
          - name: asc
      - title: Currencies
        table: currencies
        sortBy:
          - name: asc
  - title: Purchase Requests
    table: purchaseRequests
    columns:
      - date
      - requester
      - description
      - status
    sortBy:
      - date: desc
    items:
      - title: New
        filter:
          rules:
            - field: status
              operator: =
              value: new
      - title: Approved
        filter:
          rules:
            - field: status
              operator: =
              value: approved
      - title: Rejected
        filter:
          rules:
            - field: status
              operator: =
              value: rejected
  - title: Invoice Details
    table: invoiceDetails
    columns:
      - _parent(invoices.details)
      - description
      - price
    sortBy:
      - _parent(invoices.details).date: desc

In this example, the menu will be something like:

Catalogs

  Countries
  Currencies

Purchase Requests

  New
  Approved
  Rejected

Invoice Details

The pages for each one of the tables will be automatically created using the defined properties.

More information in the app.items reference documentation.