Documentation
Preparing search index...
@saltcorn/data
models/layout
export=
Variable export=
"export="
:
{
countFields
:
(
layout
:
Layout
)
=>
number
;
eachPage
:
(
layout
:
Layout
,
f
:
any
)
=>
Promise
<
void
>
;
eachView
:
(
layout
:
Layout
,
f
:
any
)
=>
Promise
<
void
>
;
findLayoutBranchWith
:
(
layouts
:
Layout
[]
,
pred
:
(
l1
:
Layout
)
=>
boolean
,
)
=>
undefined
|
Layout
;
getStringsForI18n
:
(
layout
:
Layout
)
=>
string
[]
;
getViews
:
(
layout
:
Layout
)
=>
Promise
<
any
[]
>
;
splitLayoutContainerFields
:
(
layout
:
Layout
,
)
=>
{
inner
:
undefined
;
outer
:
(
newContents
:
Layout
)
=>
Layout
}
;
translateLayout
:
(
layout
:
Layout
,
locale
:
string
)
=>
void
;
traverse
:
(
layout
:
Layout
,
visitors
:
Visitors
)
=>
Promise
<
void
>
;
traverseSync
:
(
layout
:
Layout
,
visitors
:
Function
|
Visitors
)
=>
void
;
}
Type Declaration
countFields
:
(
layout
:
Layout
)
=>
number
eachPage
:
(
layout
:
Layout
,
f
:
any
)
=>
Promise
<
void
>
execute a function on each page in the layout
eachView
:
(
layout
:
Layout
,
f
:
any
)
=>
Promise
<
void
>
execute a function on each view in the layout
findLayoutBranchWith
:
(
layouts
:
Layout
[]
,
pred
:
(
l1
:
Layout
)
=>
boolean
)
=>
undefined
|
Layout
getStringsForI18n
:
(
layout
:
Layout
)
=>
string
[]
getViews
:
(
layout
:
Layout
)
=>
Promise
<
any
[]
>
splitLayoutContainerFields
:
(
layout
:
Layout
)
=>
{
inner
:
undefined
;
outer
:
(
newContents
:
Layout
)
=>
Layout
}
translateLayout
:
(
layout
:
Layout
,
locale
:
string
)
=>
void
traverse
:
(
layout
:
Layout
,
visitors
:
Visitors
)
=>
Promise
<
void
>
traverseSync
:
(
layout
:
Layout
,
visitors
:
Function
|
Visitors
)
=>
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
Loading...
execute a function on each page in the layout