mardi 27 janvier 2015

How to implement multiple filters with checkboxes in emberjs?

How do I implement multiple filters with checkboxes in emberjs? I would like to filter a grid table with the items that have certain properties that are checked in the template checkboxes...


For example, if I have this fixture:



export default employees[
{
name: 'Ricky',
department: 'Finance'
},
{
name='George',
department='Marketing'
},
{
name='Jonah',
department: 'Finance'
}
];


And in the template I have something like this:



{{input type='checkbox'}}Finance
{{input type='checkbox'}}Marketing


how would I only display the checked department employees on the table without adding a boolean value to the fixture?





Aucun commentaire:

Enregistrer un commentaire