How can I edit an indexColumn value?
Hi,
I have a boolean that i need to replace to "active" or "not active"
this is my indexColumns in my controller
protected $indexColumns = [
'status' => [
'field' => 'status',
'title' => 'Status',
'sort' => true,
'visible' => true,
],
....
];
How can I print "active" instead of 1?
Thank u12 Replies
Hi @Kormi you can use an accessor on your model or a presenter
Check this same post. https://discord.com/channels/811936425858695198/1045332367818113054
For future reference, if you are using Twill 3 the form-builder is much more flexible and should be used over the
$indexColumns
array.ok but i do not understand how to replace row reading this post
Have you understood how this works from that thread?
I don't think you linked the right thread @kalle
Yeah I didnt but I tagged him later too on the right one.
We could really get a FAQ channel here on Discord 😄
like #👊support but we curate it? how do envision it?
Something like that, but I didnt see an option od Discord to tag a thread or a post, so that reference to the actual thread/ post can be only made by markdown url format.
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
lol
I don't get why there's no link feature in discord
or am I just dumb and there is?