Ticket #2862 (closed feature: duplicate)
Panel: decouple the appearance of the icons to the Controls
| Reported by: | jorix | Owned by: | jorix |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.12 Release |
| Component: | Control.Panel | Version: | 2.10 |
| Keywords: | Cc: | ||
| State: |
Description
When a panel manages visual controls (such as another panel)"DOM" attributes in icons and controls are mixed. The clearest example is the "title".
The ticket proposes:
- Can specify different values for title and "displayclass" for the icon.
- New property "CSSClasses" only for icons, to separate the additional classes from "displayclass", this allows a declaration of controls clearer.
Implementation: Proposes a new property "panelIcon - {Object}" in control.js. To create a control "panelIcon" contains all the specific properties of the icon.
The patch includes changes into example "panel.html":
- Adapted to new: wiki/CodingStandards#WritingExamples.
- Remove needless CSS to improve appearance.
- Show the usage of TYPE_TOGGLE controls.
- Change deprecated MouseDefaults control by Navigation
- Show the usage of the new property "panelIcon".
It includes new test for the properties into "panelIcon" object.
This patch is independent of #2863, but is designed to work together.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

