I can use the colorbutton
in a toolbar, for example. When I click on it, the click event shows the color picker.
But I would like to have it inside a grid, to configure the color for each element of the grid.
I've added a column to the grid with:
{
xtype: "widgetcolumn",
width: 60,
widget: {
xtype: 'colorbutton'
}
}
The problem is the event on the grid. It requires a callback onClick
on the controller. The click event goes to the controller, not to the colorbutton
.
I would like to trigger the onClick
event of the colorbutton
to display the picker.
In the image below, is my grid. Clicking on the button on the grid does not workm while clicking on the toolbar works fine, as expected.
Documentation: https://docs.sencha.com/extjs/6.2.0/guides/components/widgets_widgets_columns.html