Have listing but need to change view of one column:
<column name="status">
<settings>
<filter>text</filter>
<label translate="true">Status</label>
</settings>
</column>
i need to display text as value instead of integer value since in database it has 0 or 1 so in overview i have numerical values.
also another question how to change sorting order of columns since it seem i have actions column in front of some other fields although in xml it's placed as last item
1 Answer 1
To change int value to text you can use below code :
<column name="yourcolumn" class="Vendor\Modulename\Ui\Component\Listing\Column\Yourcolumn">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">false</item>
<item name="label" xsi:type="string" translate="true">Column Label</item>
</item>
</argument>
</column>
Explore related questions
See similar questions with these tags.
<item name="sortOrder" xsi:type="number">6</item>