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.

NamedLayoutRecord

interfaz Since 1.5.0

Layout con nombre de una ruta o de la página de error: su nombre ("default", "dashboard", "admin/panel"), su archivo y las props estáticas que le pasan los +group.ts de las carpetas de la página. Las layoutProps de la propia página se aplican encima en cada petición.

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

Source code src/app/runtime/router.ts:83

Declaración #

ts
interface NamedLayoutRecord {
	readonly name: string
	readonly file: string
	readonly props?: Readonly<Record<string, unknown>>
}

Example #

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

const layout: NamedLayoutRecord = {
  name: "dashboard",
  file: "app/layouts/dashboard.meeko",
  props: { showAlert: false },
};

Propiedades #

name #

propiedad sólo lectura

readonly name: string

Nombre del layout: su ruta bajo app/layouts, sin .meeko y con /.

file #

propiedad sólo lectura

readonly file: string

Archivo .meeko del layout; es uno de los layouts de la ruta.

props #

propiedad sólo lectura opcional

readonly props?: Readonly<Record<string, unknown>>

layoutProps de los +group.ts de las carpetas de la página, de fuera hacia dentro.

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/app/runtime/router.ts