Opened 6 years ago

Last modified 6 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 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 (2)

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

Description: modified (diff)

comment:2 Changed 6 years ago by Piotrek Koszuliński

Status: newconfirmed
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy