Opened 10 years ago

Last modified 10 years ago

#11771 confirmed Bug

Introduce styleableElement in widget API — at Version 1

Reported by: Olek Nowodziński Owned by:
Priority: Normal Milestone:
Component: UI : Widgets Version: 4.4.0
Keywords: Cc:

Description (last modified by Olek Nowodziński)

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...)? Via widget.setStyleableElement? By overriding widget.getStyleableElement?
  • How to alter it? delete widget.styleableElement? widget.setStyleableElement? By overriding widget.getStyleableElement?
  • How to optimise it? Cache? How to override cached element?

Change History (1)

comment:1 Changed 10 years ago by Olek Nowodziński

Description: modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy