![]() |
VOOZH | about |
Bootstrap 5 List Group methods that are used to control the visibility of the List Group component. For example, these methods can be used to show a list of group components or dispose of them.
listGroupElement.list_group_method()Example 1: In this example, we will show different List group tabs using the "show()" method given by the Bootstrap 5 List Group object.
Output:
Example 2: In this example, we will show and dispose of the list group element using the "show()" and "dispose()" methods given by the Bootstrap 5 List Group object. Once we dispose of a list group element, we cannot use any methods given by the Bootstrap 5 List Group object as it gets destroyed in the DOM.
Output:
Reference: https://getbootstrap.com/docs/5.0/components/list-group/#methods