QuestionQ33

Developing with Admin

An Adobe Commerce developer has successfully added a new column to the customers grid. The column’s data must be formatted before its content is displayed in the grid.

According to best practices, how should the developer add the custom logic to render the column?

Explanation

A custom listing-column class that extends Magento\Ui\Component\Listing\Columns\Column can override prepareDataSource() to alter each row’s displayed value before the grid renders it. Configuring that class on the column confines the formatting behavior to the new column and avoids replacing the customer grid’s data provider.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!