Skip to content

Components and containers

Miguel Pérez Colom edited this page Dec 31, 2024 · 14 revisions

Inside a Mateu UI you can place views which, basically, layout the components in header, left aside, main, right aside and footer parts. Inside those parts there is a vertical layout where you can place components.

These are the currently supported components:

  • Forms
  • Cruds
  • Result pages
  • Cards
  • Html elements / web components
  • Layouts

Only layouts can contain other components.

If you display a simple component (e.g. because you returned it as the result from a call to a menu action) it will be wrapped inside a vertical layout inside the main part inside a view, even though that happens transparently for you.

So, the structure in the browser will always be:

  • UI
    • View
      • Layout
        • Components

Where a component can be a layout which contains other components, also.

As non-layout components can not contain other components you should use layouts to compose several components together in the same view.

Please notice you should not place UIs or Views inside a layout.

Clone this wiki locally