ui/client/features/pages-editor/services/SnippetStructureApi
Cockpit client (features), v0.9. Source: ui/client/features/pages-editor/services/SnippetStructureApi.tsx.
Functions#
addSnippetChild()#
addSnippetChild(
body):Promise<{error?:string;ok:boolean;snippet?:string; }>
Defined in: ui/client/features/pages-editor/services/SnippetStructureApi.tsx:16
Parameters#
body
parentId
string
snippet
string
Returns#
Promise<{ error?: string; ok: boolean; snippet?: string; }>
moveSnippetNode()#
moveSnippetNode(
body):Promise<{error?:string;ok:boolean;snippet?:string; }>
Defined in: ui/client/features/pages-editor/services/SnippetStructureApi.tsx:13
Parameters#
body
direction
"up" | "down"
nodeId
string
snippet
string
Returns#
Promise<{ error?: string; ok: boolean; snippet?: string; }>
removeSnippetNode()#
removeSnippetNode(
body):Promise<{error?:string;ok:boolean;snippet?:string; }>
Defined in: ui/client/features/pages-editor/services/SnippetStructureApi.tsx:10
Parameters#
body
nodeId
string
snippet
string
Returns#
Promise<{ error?: string; ok: boolean; snippet?: string; }>