Adding placeholder for dropdown using templates.html | Community
Skip to main content
JakeCham
Level 6
Dec 17, 2021 11:10 AM UTC
Solved

Adding placeholder for dropdown using templates.html

Hi Team,

I have a component folder structure like below.

There is a drop down inside component and I want to get the dropdowns title as Test A as shown in the picture. I was able to get the component name as a place holder. But is this possible ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Kishore_Kumar_
Kishore_Kumar_Accepted solution
Level 9
Dec 18, 2021 10:47 AM UTC

Hi @jakecham ,

 

For dropdown placeholders, you can use emptyText property in granite/ui/components/coral/foundation/form/select node.

 

https://www.adobe.io/experience-manager/reference-materials/6-4/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/select/index.html 

 

I don't think templates.html can be used for it since dropdown is a part of cq:dialog. If you need any dynamic placeholders for dropdown try using JS.

1 reply

Kishore_Kumar_
Kishore_Kumar_Accepted solution
Level 9
Dec 18, 2021 10:47 AM UTC

Hi @jakecham ,

 

For dropdown placeholders, you can use emptyText property in granite/ui/components/coral/foundation/form/select node.

 

https://www.adobe.io/experience-manager/reference-materials/6-4/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/select/index.html 

 

I don't think templates.html can be used for it since dropdown is a part of cq:dialog. If you need any dynamic placeholders for dropdown try using JS.

Translate