Function: DeviceConfigDialog()¶
DeviceConfigDialog(
props):Element|null
Offer one device's configuration actions, with the guards libindi lacks.
Renders a 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 SidebarMenuButton wrapped in its own
SidebarMenuItem, so it drops straight into a SidebarMenu and disappears
with its list item rather than leaving an empty row behind. 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.