Documentation
Preparing search index...
@saltcorn/data
base-plugin/viewtemplates/show
export=
Variable export=
"export="
:
{
configCheck
:
(
view
:
any
,
)
=>
Promise
<
{
errors
:
string
[]
;
warnings
:
string
[]
}
>
;
configuration_workflow
:
(
req
:
object
)
=>
export=
;
connectedObjects
:
(
configuration
:
any
)
=>
Promise
<
ConnectedObjects
>
;
createBasicView
:
(
__namedParameters
:
{
all_views_created
:
any
;
table
:
any
;
template_table
:
any
;
template_view
:
any
;
viewname
:
any
;
}
,
)
=>
Promise
<
any
>
;
description
:
string
;
get_state_fields
:
()
=>
object
[]
;
initial_config
:
Function
;
name
:
string
;
queries
:
(
__namedParameters
:
{
configuration
:
{
columns
:
any
;
layout
:
any
}
;
exttable_name
:
any
;
name
:
any
;
req
:
any
;
res
:
any
;
table_id
:
any
;
}
,
)
=>
{
actionQuery
()
:
Promise
<
any
>
;
runManyQuery
(
state
:
any
,
__namedParameters
:
{
joinFieldsExtra
:
any
;
limit
:
any
;
offset
:
any
;
orderBy
:
any
;
orderDesc
:
any
;
where
:
any
;
}
,
)
:
Promise
<
Row
[]
>
;
showQuery
(
state
:
any
,
)
:
Promise
<
{
message
:
string
;
rows
:
null
}
|
{
message
:
null
;
rows
:
Row
[]
}
,
>
;
}
;
renderRows
:
(
table
:
object
,
viewname
:
string
,
__namedParameters
:
{
columns
:
object
[]
;
layout
:
object
}
,
extra
:
object
,
rows
:
object
[]
,
state
:
any
,
)
=>
Promise
<
string
>
;
routes
:
{
run_action
:
(
table_id
:
number
,
viewname
:
any
,
__namedParameters
:
{
columns
:
object
[]
;
layout
:
any
}
,
body
:
any
,
__namedParameters
:
{
req
:
object
;
res
:
any
}
,
__namedParameters
:
{
actionQuery
:
any
}
,
)
=>
Promise
<
object
>
;
}
;
run
:
(
table_id
:
string
,
viewname
:
string
,
__namedParameters
:
{
columns
:
object
[]
;
layout
:
object
;
page_title
?:
string
;
page_title_formula
:
boolean
;
}
,
state
:
object
,
extra
:
object
,
__namedParameters
:
{
showQuery
:
any
}
,
)
=>
Promise
<
string
>
;
runMany
:
(
table_id
:
number
,
viewname
:
string
,
__namedParameters
:
{
columns
:
object
[]
;
layout
:
object
}
,
state
:
object
,
extra
:
object
,
__namedParameters
:
{
runManyQuery
:
any
}
,
)
=>
Promise
<
object
[]
>
;
getStringsForI18n
(
opts
:
{
layout
:
object
}
)
:
string
[]
;
interpolate_title_string
(
table_id
:
any
,
title
:
any
,
state
:
any
,
)
:
Promise
<
any
>
;
}
Type Declaration
configCheck
:
(
view
:
any
)
=>
Promise
<
{
errors
:
string
[]
;
warnings
:
string
[]
}
>
configuration_workflow
:
(
req
:
object
)
=>
export=
connectedObjects
:
(
configuration
:
any
)
=>
Promise
<
ConnectedObjects
>
createBasicView
:
(
__namedParameters
:
{
all_views_created
:
any
;
table
:
any
;
template_table
:
any
;
template_view
:
any
;
viewname
:
any
;
}
,
)
=>
Promise
<
any
>
description
:
string
get_state_fields
:
()
=>
object
[]
initial_config
:
Function
name
:
string
queries
:
(
__namedParameters
:
{
configuration
:
{
columns
:
any
;
layout
:
any
}
;
exttable_name
:
any
;
name
:
any
;
req
:
any
;
res
:
any
;
table_id
:
any
;
}
,
)
=>
{
actionQuery
()
:
Promise
<
any
>
;
runManyQuery
(
state
:
any
,
__namedParameters
:
{
joinFieldsExtra
:
any
;
limit
:
any
;
offset
:
any
;
orderBy
:
any
;
orderDesc
:
any
;
where
:
any
;
}
,
)
:
Promise
<
Row
[]
>
;
showQuery
(
state
:
any
,
)
:
Promise
<
{
message
:
string
;
rows
:
null
}
|
{
message
:
null
;
rows
:
Row
[]
}
,
>
;
}
renderRows
:
(
table
:
object
,
viewname
:
string
,
__namedParameters
:
{
columns
:
object
[]
;
layout
:
object
}
,
extra
:
object
,
rows
:
object
[]
,
state
:
any
,
)
=>
Promise
<
string
>
routes
:
{
run_action
:
(
table_id
:
number
,
viewname
:
any
,
__namedParameters
:
{
columns
:
object
[]
;
layout
:
any
}
,
body
:
any
,
__namedParameters
:
{
req
:
object
;
res
:
any
}
,
__namedParameters
:
{
actionQuery
:
any
}
,
)
=>
Promise
<
object
>
;
}
run_action
:
(
table_id
:
number
,
viewname
:
any
,
__namedParameters
:
{
columns
:
object
[]
;
layout
:
any
}
,
body
:
any
,
__namedParameters
:
{
req
:
object
;
res
:
any
}
,
__namedParameters
:
{
actionQuery
:
any
}
,
)
=>
Promise
<
object
>
run
:
(
table_id
:
string
,
viewname
:
string
,
__namedParameters
:
{
columns
:
object
[]
;
layout
:
object
;
page_title
?:
string
;
page_title_formula
:
boolean
;
}
,
state
:
object
,
extra
:
object
,
__namedParameters
:
{
showQuery
:
any
}
,
)
=>
Promise
<
string
>
runMany
:
(
table_id
:
number
,
viewname
:
string
,
__namedParameters
:
{
columns
:
object
[]
;
layout
:
object
}
,
state
:
object
,
extra
:
object
,
__namedParameters
:
{
runManyQuery
:
any
}
,
)
=>
Promise
<
object
[]
>
getStringsForI18n
:
function
getStringsForI18n
(
opts
:
{
layout
:
object
}
)
:
string
[]
Parameters
opts
:
{
layout
:
object
}
Returns
string
[]
interpolate_title_string
:
function
interpolate_title_string
(
table_id
:
any
,
title
:
any
,
state
:
any
)
:
Promise
<
any
>
Parameters
table_id
:
any
title
:
any
state
:
any
Returns
Promise
<
any
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
Loading...