Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Using clay label in search container column text
Hello everybody
I am new at Liferay and i have a question concerning clay label. Is there a way to display clay label within "liferay-ui:search-container-column-text"
i tried something like this:
but it doesn't work as expected.
I know there is a way using "<liferay-ui:search-container-column-status property="status"/>", but i need more Lables than column status provide.
And is it possible to switch clay labels depending on the status value which is saved in the database?
i am using Liferay 7.2.1
best regards
Reiner
I add a picture to show what i want to do. If there is an other way to do this, let me know
I am new at Liferay and i have a question concerning clay label. Is there a way to display clay label within "liferay-ui:search-container-column-text"
i tried something like this:
<liferay-ui:search-container-column-test name="status" property="status" <clay:label label="Pending" style="warning" />
/>
but it doesn't work as expected.
I know there is a way using "<liferay-ui:search-container-column-status property="status"/>", but i need more Lables than column status provide.
And is it possible to switch clay labels depending on the status value which is saved in the database?
i am using Liferay 7.2.1
best regards
Reiner
I add a picture to show what i want to do. If there is an other way to do this, let me know
Attachments:
I found a way to implement this behavier:
I got the clay label displayed, now i have to do some query to change the label text
With the <c:if> and use of the modelVar of searchContainer it is possible to change the label text depending on the saved status in database
<liferay-ui:search-container-column-text name="Status">
<clay:label label="RandomLabel" style="info" />
</liferay-ui:search-container-column-text>
I got the clay label displayed, now i have to do some query to change the label text
With the <c:if> and use of the modelVar of searchContainer it is possible to change the label text depending on the saved status in database
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™