LayoutRows

Introduction

LayoutRows represent a row in a user defined Layout. LayoutRows can consist of many LayoutColumns and are always attached to a Layout. There can not be any Element in a LayoutRow without being attached to a LayoutColumn.

Model Definition

Alias

layoutRow

Relations

Key
Relation
Type
Relation Field(s)

layout

Belongs to

layout_id

layoutColumns

Has many

layoutColumn.layout_row_id

Traits

  • Sortable

  • SoftDeletes

List

Get a list of all LayoutRows available in the system.

Definition

GET /api/layouts/rows

Example Request

Example Response

Show

Show a single LayoutRow by id.

Definition

GET /api/layouts/rows/{id}

Example Request

Example Response

Create

Creates a new LayoutRow

Definition

POST /api/layouts/rows

Request Keys

Key
Type
Default
Description

title

string

null

The title for the LayoutRow.

layout_id*

integer

-

The Layout this LayoutRow belongs to.

separator

boolean

false

Whether there should be a separator displayed or not.

sort_number

integer

Current highest +1

The index of the LayoutRow related to the Layout.

Keys with * are required.


Example Request

Example Response

Update

Update an existing LayoutRow by id.

Definition

PUT /api/layouts/rows/{id}

Request Keys

Key
Type
Default
Description

title

string

-

The title for the LayoutRow.

layout_id

integer

-

The Layout this LayoutRow belongs to.

separator

boolean

-

Whether there should be a separator displayed or not.

sort_number

integer

-

The index of the LayoutRow related to the Layout.

Keys with * are required.

Example Request

Example Response

Delete

Delete an existing Layout by id.

Definition

DELETE /api/layouts/rows/{id}

Example Request

Example Response

Last updated