Layout
This is the basic layout structure of Brezel.
See LayoutSpec.
Tabs
identifier: string
position: int
icon: string
loaded_on_create_webhook: string
(webhook event to call when this tab is loaded in module/create)rows: array
Rows
cols: array
Cols
span: int
borderless: boolean
vertical_labels: boolean
no_labels: boolean
no_padding: boolean
components: array
Options
hidden_from_frontend
Tabs, Rows, Cols and Components can be hidden from the frontend. This can be attached to a boolean condition.
This text field will only show up in the modal if the user selected “final” in Mahnungsstufe.
Main Menu
You can define which module page to land on after login by defining a menu entry like so:
In this case, the module “dashboard” is opened upon login. You can also use recipes to e.g. set the visibility or change the icon of an menu element.
Top Bar
You can use a layout to add components to the top bar. Just create a layout file like ‘top_bar.bake.json’ and set the type to “top_bar”.
Affix
You can add custom content to the affix that is rendered on top of entity pages and contains the standard buttons and entity title.
It is basically a layout row as described above, so defining it is the same as defining a row in a layout.
To add content to the affix, add a property called affix
to your layout spec.
Buttons
You can define custom buttons which will be displayed in the top bar, or hidden in a list which opens on click on “actions”. To do so, the property name of the button object should be the same as your workflow webhook name which you want to trigger on click. You can also choose to hide standard buttons.
They have the following properties:
icon: string
style: string
forceTitle: boolean
if this is not set or false, only the icon will be displayed.