In this example we have a list of the best selling single-volume books.
The module "SlickGrid" module is designed to display an array.
Exercise
- Add a slick grid module (Edition > Slick Grid). Configure modules such that slick grid receives the array of books. By default, slick grid should inspect the properties of the objects and and display them all.
- Edit the preferences of the slick grid module and such that only the title and the author are displayed.
- Go to the preferences and check the "Editable", "Enable add row", and "Can delete rows" options. You also have to select an editor for each column you want to be editable. Use "Based on type" instead of "None". Try to edit/add/delete rows.
- Feel free to experiment with other options. For example, activate the search option.
Bonus
Create a code editor and generate a very big array (~100'000 entries). You can create random data. Input this data in slick grid. Slick grid is fast even with very big entries.