Using clay label in search container column text

Reiner Zufall, modified 5 Years ago. New Member Posts: 22 Join Date: 7/6/20 Recent Posts
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:

 <liferay-ui:search-container-column-test name="status" property="status" <clay:label label="Pending" style="warning" />
 /&gt;

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
Reiner Zufall, modified 5 Years ago. New Member Posts: 22 Join Date: 7/6/20 Recent Posts
I found a way to implement this behavier:

&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <liferay-ui:search-container-column-text name="Status">
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<clay:label label="RandomLabel" style="info" />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;</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