I'm using Jexcel spreadsheet to catalog some data from a survey.
In a column I have a dropdown with vehicle manufacturers as options (Toyota, Honda ...).
In another column I have another dropdown with vehicle models.
How do I filter the models only from the manufacturer selected in the first dropdown?
The data structure is something like:
var manufacturers = [
{ id: 1, name: 'Toyota' },
{ id: 2, name: 'Honda' }
];
var models = [
{ id: 8, manufacturer_id: 1, name: 'Corolla' },
{ id: 9, manufacturer_id: 2, name: 'Civic' }
];
filter
property of the "model" column to a function that will be used to filter the contentdropdownFilter
source.filter()
Here's a Working Pen