ui/client/features/pages-editor/components/PagesBrowserTab
Cockpit client (features), v0.9. Source: ui/client/features/pages-editor/components/PagesBrowserTab.tsx.
Functions#
PagesBrowserTab()#
PagesBrowserTab(
__namedParameters):Element
Defined in: ui/client/features/pages-editor/components/PagesBrowserTab.tsx:43
Props#
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
feature |
string |
Yes | — | |
onFeatureChange |
(feature: string) => void |
Yes | — | |
features |
string[] |
Yes | — | |
file |
string |
Yes | — | |
onOpen |
(file: string) => void |
Yes | — | |
files |
string[] |
Yes | — | |
loading |
boolean |
Yes | — | |
roots |
`PagesEditorNode[] | null` | Yes | — |
selectedId |
`string | null` | Yes | — |
onSelect |
(id: string) => void |
Yes | — | |
view |
`'files' | 'flow'` | Yes | — |
switcher |
ReactNode |
Yes | — | The Files | Flow switch, supplied by the controller. |
flow |
ReactNode |
Yes | — | The Flow view (and a file opened from it), supplied by the controller. |
allPages |
`{ status: 'loading' | 'error' | 'ready'; pages: { feature: string; file: string }[]; error: string; reload: () => void }` | Yes |
onOpenPage |
(feature: string, file: string) => void |
Yes | — | |
onShowAllPages |
() => void |
Yes | — | Back from a feature's view to the list of all pages. |
Returns#
Element