Support for modules to operate on the card's configuration #2101
Airblader
started this conversation in
Feature requests
Replies: 1 comment 2 replies
-
|
Things like #2097 would also become possible with this, I think. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
OK, this is a pretty advanced feature for modules, but I think there are many either new use cases requiring this, or existing use cases that would just get easier by having this.
What if modules could actually operate on the card's configuration object, rather than just reading it?
Disclaimer...
I have played around with whether this is already possible, but I don't believe it is, even if trying to be "hacky".This would give modules the ability to mutate existing state as needed (e.g. the
get_state_attributemodule requires "Show attribute" to be set, but it could just force this itself), or even create state. Want to add the same complex set of sub-buttons to several cards? Just write a module that adds them!In a sense, this is like a super-charged way of templating Bubble Cards, because modules can be much more context-sensitive than templates.
I have no idea if this is architecturally even feasible at all, but one can dream, so here I am. 🙂
Beta Was this translation helpful? Give feedback.
All reactions