-
Notifications
You must be signed in to change notification settings - Fork 14
Allow classes to be specified in the mark up for custom widgets #20
Comments
This would be sugar over Would it be |
does |
|
The best the app factory can do is provide |
If there is no |
An ID would be required to use stores. Custom element factories do get their state from the app's default store if they have an ID. We could create a unique ID but that seems iffy. I'd rather explore taking |
yeah sorry |
To recap, currently you can pass classes as part of |
@agubler status on this, still in-prog? |
Widgets can only take per-instance For consistency we should then disallow |
For now, we think this is too dangerous and want to defer this until we have a better idea of why other ways of setting this are not workable. |
The "too dangerous" part referring to hoisting state properties out of |
This is no longer relevant after the significant rework on widget-core (purpose of the ticket has been solved in other ways). |
As DOM nodes are discarded within
widget-instances
to add something like a container node you need to use custom element that factories the DOM node required, these are often static and stateless so there is little value having to manage an entry in a store using thestateFrom
attribute in thedata-options
(provide classes etc).There could simply be a
classes
attribute that is used to specify the classes on instantiation of the custom widget.The text was updated successfully, but these errors were encountered: