I am trying to add a headeraction to a table. This works fine in a class that extends Resource (first and second screenshot).
But in another project i have a different structure and i want to set a headeraction in a Class that extends Component (third screenshot). This headeraction inside a component class is shown in a strange way and i cant set a label or color.
Also my npm run dev is showing a warning which could be a hint for the problem but i dont know: "(node:13620) Warning: An error event has already been emitted on the socket. Please use the destroy method on the socket while handling a 'clientError' event. (Use
node --trace-warnings ...
node --trace-warnings ...
to show where the warning was created)"
Can someone tell me why i cant use headeractions inside a Class that extends Component instead of Resource? And maybe tell me how the correct way would be?