Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

SidebarFactory

jiajunGit edited this page Jul 24, 2017 · 7 revisions

Description

SidebarFactory is the UI component factory that constructs the side bar container containing the header, selected labels container, search panel and group label containers manufactured by their corresponding UI component factories.

Preview of the empty sidebar that it creates

Events subscribed

  • search-bar/apply-selected-labels - reacts by hiding the sidebar
  • search-bar/escape-key-triggered - reacts by hiding the sidebar

Overview of SidebarFactory

  • You can create a sidebar element using the create() function.
  • Initialize the sidebar state using the initializeSideBarState() function. If the sidebar has not been initialized, it will not work.
  • Below is the HTML representation of the element that it creates:
<div class="git-flash-labels-sidebar ui right vertical inverted labeled wide sidebar menu">...</div>
Clone this wiki locally