I'd like to make some modifications before displaying it in admin grid. For now all what I want to do is just simply replace 0 and 1 in a column with Yes/No. There are a two ways that come to my mind.
First way is to modify the data before passing them to grid. (How? By an interceptor? Maybe there is there a way to modify the model collection?)
Second way is to make an own ui component that will handle that job.
What's the right way to do it?
Best Answer
As modyfing data for grid only should be, in my opinion, kept around the grid itself I've implemented some small column class modification by:
modyfing the layout column node:
and creating class
\Vendor\ModuleName\Ui\Component\Listing\Column\Yesno
: