Opened 12 years ago
Last modified 12 years ago
#11771 confirmed Bug
Introduce styleableElement in widget API
| Reported by: | Olek Nowodziński | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | UI : Widgets | Version: | 4.4.0 |
| Keywords: | Cc: |
Description (last modified by )
At the moment (#11297) to change the way widgets are styled, developer must override widget#add/has/getClasses, which is not quite straightforward.
The idea is to introduce widget#styleableElement property which, referring to the right element, can be re-used in widget#add/has/getClass and reduce the complexity of customisation.
Problems:
- How to set it? Via
widgetDef(selector, method...)? Viawidget.setStyleableElement? By overridingwidget.getStyleableElement? - How to alter it?
delete widget.styleableElement?widget.setStyleableElement? By overridingwidget.getStyleableElement? - How to optimise it? Cache? How to override cached element?
Change History (2)
comment:1 Changed 12 years ago by
| Description: | modified (diff) |
|---|
comment:2 Changed 12 years ago by
| Status: | new → confirmed |
|---|
