ui/client/features/pages-editor/hooks/useAutoMap
Cockpit client (features), v0.9. Source: ui/client/features/pages-editor/hooks/useAutoMap.tsx.
Functions#
useAutoMap()#
useAutoMap(
feature,file,nodeId,contentHash,onSaved):object
Defined in: ui/client/features/pages-editor/hooks/useAutoMap.tsx:8
Auto-map unmapped child props onto the parent component.
Parameters#
feature
string
file
string
nodeId
string
contentHash
string
onSaved
(tree) => void
Returns#
object
apply
apply: () =>
Promise<void>
Returns
Promise<void>
busy
busy:
boolean
candidates
candidates:
string[] |null
checked
checked:
Set<string>
childPropsResolved
childPropsResolved:
boolean
find
find: () =>
Promise<void>
Returns
Promise<void>
status
status:
StatusMessage|null
toggle
toggle: (
name) =>void
Parameters
name
string
Returns
void