Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Custom widget property problem

Avatar

Avatar
Validate 10
Level 2
Rui_J
Level 2

Likes

4 likes

Total Posts

39 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 10
Level 2
Rui_J
Level 2

Likes

4 likes

Total Posts

39 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
Rui_J
Level 2

15-10-2015

Hi,I am trying to wirte a simple custom widget extending CQ.form.ColorField, this is my code. 

ColorScheme = CQ.Ext.extend(CQ.form.ColorField,{ constructor: function(){ ColorScheme.superclass.constructor.call(this,{ colors: ['FF9900'], showHexValue:true }); } }); CQ.Ext.reg('colorscheme', ColorScheme);

When I reference this in my jcr  and tried to set fieldLabel, it never picked up my fieldLabel value on the page. And fieldLabel only works when I  set the value in the constructor.

<backgroundColor jcr:primaryType="cq:Widget" fieldLabel="Background Color" name="./bgColor" xtype="colorscheme" />

 

Can someone help me this?

Thank you

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

15-10-2015

So we know your project and all files -- can you please submit a screen shot of all files that you are using in your component - including dialog nodes.