-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable device section folding #2233
Comments
I would also appreciate this being implemented. After using the '[homebridge-virtual-accessories]' plugin and adding a few devices, you start to lose yourself in the number of fields shown. Implementing the same functionality as the 'Accessory Plugin template' would be perfect |
Looking at the code, the multiple platform config section, wraps the individual platform card in an
So it would be the case of wrapping the individual device card in the same
|
This functionality is supported for accessories, if the plugin type is
|
This is supported by
This shows the form with expanded This functionality is offered out of the box and may be just a question of updating
and homebridge-config-ui-x/ui/src/app/core/components/schema-form/schema-form.component.ts - lines 19-25:
Per ajsf/projects/ajsf-material/src/lib/widgets/flex-layout-section.component.ts it is looking at
|
See How to display accessory name in header field? as acceptable solution, although the section header would need to be dynamic. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Keeping this open |
Closing this, as the following is supported:
|
Just noticed that @donavanbecker pinned this item, so reopened. |
Expanding and collapsing is supported, but it would be nice to have the cool fold/expand and delete icons. |
Feature Description
For plugins using the Accessory Plugin template, when you have an multiple accessories, each accessory section in the configuration can be collapsed, as shown for these Dummy Switches:
This makes it easy to manage a large set of devices.
For plugins using the Platform Plugin template, when you have an array of accessories, each individual accessory section in the configuration is not collapsible, as shown:
This makes it harder to find a device in a large set of devices.
This enhancement suggests adding to the Platform Plugin template the default ability to expand/collapse the section of a singe device in an array.
Using
form
:If you try to use the
form
section inconfig.schema.json
, as specified in the JSON Schema Form spec, you can only expand/collapse the entire configuration, unless you fully manage the form layout, which means that dynamically showing/hiding fields through the use ofcondition
fails completelyAll collapsed:
All expanded:
Or you get the JSON Schema Form
form
and the Homebridge layout conflicting. Which means that if the out-of-the-box Homebridge layout changes, it can end up breaking plugin layouts:The text was updated successfully, but these errors were encountered: