Layouts
Customize page contents
By default, Pages show the contents of the directory in the codebase they're associated with, but
you can also specify a custom layout in your
index.airplane.yaml file. This allows you to compose
tasks together and build some simple dashboards. For example, this dashboard:
Can be configured with the following layout:
yamlCopied1name: Team inspector2description: Inspect teams3icon: 🔨4actions:5- label: Create team6task: create_team7layout:8- type: markdown9value: |10**Be careful** - this tool has the power to create teams and revenue!11- type: section12columns:13- type: task14slug: get_total_revenue15autoRun: true16- type: task17slug: get_top_team18autoRun: true19- type: task20slug: list_teams21autoRun: true
Blocks
Blocks
Custom layouts use a block-based model. Each entry in the
layouts field corresponds to a block,
and blocks are rendered in order, top to bottom. In order to show content side by side, use the
section block type, which is a composite of other blocks. Configuration for each block must
specify the type, as well as type-specific configuration fields. Supported block types include
heading, markdown, section, and task.Heading
Heading
Heading blocks are used to show headings of various sizes. Specify the heading text in the
value
field, and the heading size in the level field. level may be heading1, heading2, or
heading3.yamlCopied1layout:2- type: heading3level: heading14value: User Details
Markdown
Markdown
Arbitrary markdown can be rendered in a markdown block. Specify the markdown content in the
value
field.yamlCopied1layout:2- type: markdown3value: |4This text is ***really important***.
Section
Section
Use Section blocks to render content side by side. A section may contain a maximum of three blocks,
specified in the
columns field, and the blocks are rendered side by side at equal width.yamlCopied1layout:2- type: section3columns:4- type: markdown5value: This is shown on the left6- type: markdown7value: This is shown on the right
Task
Task
Tasks can be put on a page by specifying the
slug field and optionally its paramValues. By
default, the task's parameter form is shown, with parameters pre-filled according to paramValues.yamlCopied1layout:2- type: task3slug: update_revenue4paramValues:5revenue: 50

You can configure the task to automatically run on page load by setting
autoRun to true. When
autoRun is true, the task loading state will be shown as it runs, and the output will be shown
once it finishes, respecting the configured output display.yamlCopied1layout:2- type: task3slug: get_top_team4autoRun: true
When a task finished executing, a refresh button will appear in the bottom right, enabling you to
re-run the task.
autoRun tasks will execute again right away, whereas non-autoRun tasks will be
taken back to the task form.
Reference
Reference
Heading
type
REQUIRED
Specify that the type is heading to use this block.
value
REQUIRED
The heading title.
level
REQUIRED
The size of the heading.
Markdown
type
REQUIRED
Specify that the type is markdown to use this block.
value
REQUIRED
Markdown content.
Section
type
REQUIRED
Specify that the type is section to use this block.
columns
REQUIRED
The block definitions that comprise this Section block. Must have 2 or 3 elements, and not contain other Section blocks.
Task
type
REQUIRED
Specify that the type is task to use this block.
slug
REQUIRED
The task slug.
autoRun
optional
Set this to true to run the task on page load.
paramValues
optional
The parameters that the task should run with if autoRun is true, or the pre-filled parameters if autoRun is false.