Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

PageLayoutOptions

tipo Since 1.5.0

Opciones de layout de las opciones de ruta (definePage): layout elige el layout con nombre y layoutProps le pasa props, tipadas contra ese layout. Sin layout, la página hereda el de sus +group.ts o default; entonces meeko check comprueba layoutProps contra el heredado.

ts
import type { PageLayoutOptions } from "@meekojs/meeko/framework";

Source code src/shared/layout.ts:140

Declaración #

ts
type PageLayoutOptions<C> =
| {
		readonly layout?: undefined
		readonly layoutProps?: LayoutPropsInput<LayoutName, C>
  }
| {
		readonly layout: false
		readonly layoutProps?: never
  }
| {
		[L in LayoutName]: {
			readonly layout: L
			readonly layoutProps?: LayoutPropsInput<L, C>
		}
  }[LayoutName]

Type parameters #

C

Contexto de la función de layoutProps.

Example #

ts
import type { PageLayoutOptions } from "@meekojs/meeko/framework";

const options: PageLayoutOptions<unknown> = { layout: "dashboard", layoutProps: { title: "Panel" } };

See also #

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/shared/layout.ts