Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Develop a filter directive that looks like the following graphic:

The behavior is as described:
• The first line is dynamically generated text
• The underlined text is filter criteria. When a mouse hovers over it, an icon with a “x” marking is displayed. When clicking the “x” icon, the filter criteria is removed
• You can add multiple criteria to the filter. They will show up with a “and”, for example:
Showing results where description contains “X” and title starts with “U”
• The second line displays the criteria building:
o The first dropdown shows the available fields
o The second dropdown shows the filters applicable to the selected field (each field has different criteria)
o The third input box shows the input depending on the selected criteria (e.g. text input or number input)
• Add a “Filter” button at the end to accept the additional criteria
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900