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
  • Issues
  • #22835
Closed
Open
Issue created Jun 15, 2017 by Administrator@rootContributor

Feature Request: Close dropdown with JavaScript $().dropdown('close')

Created by: sealocal

Feature Request: Add support for closing dropdowns through the JavaScript API

There is one JS method for dropdowns:

$().dropdown('toggle')  // Toggles the dropdown menu of a given navbar or tabbed navigation.

docs: https://v4-alpha.getbootstrap.com/components/dropdowns/#methods

Though the alert component is not exactly a parallel, I think this would provide some consistency to the API, which provides a way to close alerts:

$().alert('close')  // Closes an alert by removing it from the DOM. If the .fade and .show classes are present on the element, the alert will fade out before it is removed.

docs: https://v4-alpha.getbootstrap.com/components/alerts/#methods

Further, modals provide a similar close ('hide') feature.

docs: http://v4-alpha.getbootstrap.com/components/modal/#methods

Assignee
Assign to
Time tracking