PDA

View Full Version : Custom Control Panel Based with Labelable



gonzalo.vinas
5 Apr 2012, 8:04 PM
Hi there, I have developed a nice custom control based on Panel. Its work like charm but I realize it would be nicer to be aligned with extjs validation ui-cues, these are 1)red border and 2) red icon with floating text message.

The thing is that I've tried to mix-in my class with the Labelable mixin but I couldn't make it work. Mainly because the "errorEl" isnt' createad (I took that from Labelable.js file from the framework).

What is the best way to get the red border and red icon usable from my custom component?

thanks in advance.
as always ExtJs IS GREAT!!!

scottmartin
6 Apr 2012, 7:16 AM
For changing the color of the border, have a look at:
.x-panel-body-default::border-color

For the icon/floating message, have a look at Tooltips

Regards,
Scott.