Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !6440

added support for customizing an item in the dropdown results

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/veracarr/3.0.0-wip into 3.0.0-wip Jan 02, 2013
  • Overview 0
  • Commits 3
  • Pipelines 0
  • Changes 3

Created by: veracarr

I added an additional function itemPostRender to allow developers to customize particular dropdown results. By default, this just returns the HTML that was originally rendered. In the screenshots, I show some examples of how I leveraged this functionality to add a dividing line and loading indicator.

I additionally added logic into render to check that the items list is not empty. This is a safeguard, to handle the case where a user potentially returns null for all items' HTML.

Tested browsers: Safari 6.0.2 Chrome 23.0.1271.101

Screen Shot 2013-01-02 at 8 49 42 AM Screen Shot 2013-01-02 at 8 47 39 AM

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/veracarr/3.0.0-wip