[Styling Module+JS+Editor Module] Collapsible Sub Button Groups #2277
Replies: 4 comments 30 replies
-
|
Its the first time I am sharing something like this. Feedback is very appreciated. |
Beta Was this translation helpful? Give feedback.
-
|
Ok this is awesome. I have been looking for something like this. Does it work with room card? |
Beta Was this translation helpful? Give feedback.
-
|
So just tried to add it to a room card I was working on. Works well for a standard Button card ie/ on/off. But I tried to make the main button a standard bubble card slider, and the slider doesnt appear on tap. It does if this module isn't applied. Also, can you clarify what main button custom class is? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @Alefriedo . Thanks for this! I think this is one of the better approaches for packing more sub-buttons into limited space. I'm wondering if you can make an option to trigger expansion with a single tap instead of double tap? I'll give this a shot myself in the code, but I'm a novice, so we'll see.. Thanks again! |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Collapsible Sub Button Groups
Version: 1.2.2
Creator: Alefriedo
Important
Supported cards:
Breaking change in 1.2.0: Default action type is set to tap, action type is now choosable.
Turns a sub-button group into a collapsible menu. All buttons except the main button are hidden by default and reveald with a double tap. The menu can be closed by the automatically inserted close button.
Configure which group to collapse via its index (0 = first group, 1 = second, etc.), and choose the main button by position (first or last) or by a custom CSS class name (e.g. "bubble-sub-button-1" or the automatically generated class by giving the button a custom name). Multiple groups can be configured as collapsible menu.
If a double-tap action is set to the main button, it will be removed while using this module.
Configure this module via the editor or in YAML, for example:
🧩 Get this Module
Screenshot:
Before posting your module
unsupportedpropertyyour_module_keyBeta Was this translation helpful? Give feedback.
All reactions