Bottom Tab View Simulation
The bottom-tab-view-simulation
key allows you to simulate a bottom tab navigation interface, similar to those found in native mobile apps. This feature enables running multiple Eitri-Apps in parallel, each shown as a tab, making it easier to test apps as if they were sections of a single application.
π§ YAML Structure
Add the bottom-tab-view-simulation
key to your app-config.yaml
file, and define the eitri-apps
list with the desired Eitri-Apps to show in the bottom tab view.
bottom-tab-view-simulation:
eitri-apps:
- slug: "eitri-app-slug"
title: "Tab Title"
initialization-params:
type: "string"
value: "<initialization payload>"
π§© Available Fields
Field | Type | Required | Description |
---|---|---|---|
slug |
string |
β Yes | The identifier (slug) of the Eitri-App to load. |
title |
string |
β Yes | The title shown on the bottom tab for this app. |
β Full Example
bottom-tab-view-simulation:
eitri-apps:
- slug: "power-rune"
title: "First"
initialization-params:
type: "string"
value: "var1=xpto&var2=foobar"
- slug: "eihwaz-rune"
title: "Second"
- slug: "eitri-doctor"
title: "Third"
- slug: "eitri-doctor"
title: "Fourth"
π‘ Tips
- Use
type: "string"
for quick query-style inputs likekey=value&key2=value2
.
- The tabs appear in the order they're listed.