Function: DeviceConfigDialog()¶
DeviceConfigDialog(
props):Element|null
Offer one device's configuration actions, with the guards libindi lacks.
Renders a nested sidebar entry that opens the actions in a modal. Renders
nothing at all when no device is selected or the selected device has no
CONFIG_PROCESS, since a device that cannot be configured must not offer a
button that opens an empty dialog, and only the members the vector carries
when it does.
With no children the trigger is a SidebarMenuSubButton inside its own
SidebarMenuSub, so it drops straight into the device's own SidebarMenuItem
and takes the whole nested list with it when there is nothing to configure,
rather than leaving an indented rule hanging under the row. The sub-list is
named for the device, which is what a reader walking the device menu hears in
place of the group heading this replaced: "Open-Meteo, list, one item,
Configuration". Pass children to open the same dialog from your own shell.
Parameters¶
props¶
The selected device, and an optional trigger element.
Returns¶
Element | null
The trigger and its dialog, or null when there is nothing to configure.