clearMenus
scared me: function clearMenus(e) { $(backdrop).remove() $(toggle).each(function () { var $parent = getParent($(this)) var relatedTarget = { relatedTarget: this } if (!$parent.hasClass('open')) return $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget)) if (e.isDefaultPrevented()) return $parent.removeClass('open').trigger('hidden.bs.dropdown', relatedTarget) }) } // $(document).on('click.bs.dropdown.data-api', clearMenus)
clearMenus
function and made it public, it is not used internally, but if necessary it can be called from outside $.fn.dropdown.clearMenus
Submenus just the mobile web. They will be removed with 3.0. - github.com/twbs/bootstrap/pull/6342#issuecomment-11594010For example, in one project, I needed to implement a main menu with two levels of nesting, which is added up with a lower resolution (menu from navabar). Hence the need for this functionality. See the first example to better understand what it is about.
radio
and checkbox
. Examples.pull-right
, in addition to the standard .pull-right
, new classes .pull-top
, .pull-center
, .pull-middle
were introduced..bullet
adds an arrow to the menu.Source: https://habr.com/ru/post/220295/
All Articles