Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G g1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 68
    • Issues 68
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cto
  • g1
  • Issues
  • #87

Closed
Open
Created Aug 10, 2018 by Pragnya Reddy@pragnya.reddyDeveloper

$.filterhandler()

Summary

Create dropdowns with unique values from data.

Benefits

Gives user ability to generate dropdowns for usage in dashboard using simple config.

Usage

$('.product-list').filterhandler({
  url: 'filters',
  cols: ['product', 'city']
})

This should create two dropdowns with unique values from the columns product and city.

Extending along with the above, $.filterhandler() should be able to handle NavBar filters. Navbar filters include daterangepicker, multi/single select dropdowns, dropdowns that filter down items based on parent dropdowns.

The NavBar filters should have easy extension hooks to operate individually updating URL params or only on click on <form> Apply button.

The navBar filters component should have overridable template for "Applied filters" boxes with clear button for each value per UI control or clear all applied filters for same UI control

Edited May 10, 2019 by Tejesh
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking