p-tableHeaderCheckbox all rows checked on initialization

Viewed 1518

I am using PrimeNG on my project and in a component there is a p-table containing a p-tableHeaderCheckbox.

I would like to have all rows checked when my component is initialized, is it possible on how could it be done?

Thank you very much for your help!

1 Answers

I have created an example that works, just fill [(selection)] with the initial values of your table.

example

Related