Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

granite:class and granite:data for select?

Avatar

Level 2

Hello,

I just finished watching this presentation: https://seminars.adobeconnect.com/p43ucnv6655/?proto=true

I am trying to add a granite:class property to my granite/ui/components/foundation/form/select widget.

I was able to add this to a textfield, but it doesn't appear to be working for the select field.

Can someone please advise on how to go about adding this property?

Thanks, Matt

1 Accepted Solution

Avatar

Correct answer by
Level 2

Use granite/ui/components/coral/foundation/form/select instead

View solution in original post

4 Replies

Avatar

Level 10

Hi

Please let us know the solution to the community.

Thanks,
Ratna.

Avatar

Correct answer by
Level 2

Use granite/ui/components/coral/foundation/form/select instead

Avatar

Level 4

An example (with Granite UI - RadioGroup - granite:class and granite:data):

This is the markup in .content.xml:

1547514_pastedImage_2.png

This is the rendered DOM:

1547512_pastedImage_0.png

Good Luck...