VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/bootstrap-5-popovers-toggleenabled-method/

⇱ Bootstrap 5 Popovers toggleEnabled() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Bootstrap 5 Popovers toggleEnabled() Method

Last Updated : 22 Jul, 2024

Bootstrap 5 Popovers toggleEnabled() method is used to toggle between the enabled and disabled state of the popover. When the popover is in a disabled state, it cannot be shown or hidden.

Syntax:

popOver.toggleEnabled();

Parameters: The toggleEnabled method does not require any parameter.

Return Value: The toogleEnabled method does not return any value back to the caller.

Example 1: In this example, we used the toggleEnabled method to toggle between the enabled and disabled state of the popover element.

Output:

Example 2: In this example, we used the popover toggleEnabled method with its disable and enable methods.

Output:

Reference: https://getbootstrap.com/docs/5.0/components/popovers/#toggleenabled

Comment

Explore