🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@exmg/exmg-sidemenu

Package Overview
Dependencies
Maintainers
18
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exmg/exmg-sidemenu

Paper style collapsible sidemenu

latest
Source
npmnpm
Version
8.2.4
Version published
Maintainers
18
Created
Source

<exmg-sidemenu> Published on npm

@exmg/exmg-sidemenu

WARNING: This element is not compatible with Polymer 1.0

<exmg-sidemenu> Is a collapsible sidemenu.

Installation

npm install @exmg/exmg-sidemenu

Example Usage

<exmg-sidemenu
  selected="rooms/"
  ?collapsed="${this.collapsed}"
  @collapsed="${this._handleCollapsed}"
  @selected-changed="${this._handleSelectedChanged}"
  ?narrow="${this.narrow}"
>
  <exmg-sidemenu-header slot="header" ?collapsed="${this.collapsed}"></exmg-sidemenu-header>
  ${this.renderMenu()} ${this.renderFooterButton()}
</exmg-sidemenu>

API

Slots

NameDescription
defaultMenu items of the side-menu
footerFooter item of the side-menu

Properties/Attributes

NameTypeDefaultDescription
collapsedbooleanfalseWhether the side-menu is collapsed or not
selectedstringNoneContains the path of the selected menu item
disableCollapsebooleanfalseDisable collapse functionailty
footerItembooleanfalseWhether the side-menu has a footer-item

Methods

None

Events

NameDescription
collapsedFired when the side-menu collapse toggles
selected-changedFired when the selected menu item changes

CSS Custom Properties

NameDefaultDescription
--exmg-sidemenu-backgroundwhiteSidemenu background color
--exmg-sidemenu-width256pxSidemenu width
--exmg-sidemenu-collapsed-widthwhiteSidemenu collapsed width
--exmg-sidemenu-group-text-color54% blackGroup titletext color
--exmg-sidemenu-item-text-color54% blackItem text color
--exmg-sidemenu-menu-footer-background-color#F9FAF9Footer background color
--exmg-sidemenu-menu-border-color#DDDBorder color of menu
--exmg-sidemenu-icon-color54% blackSidemenu icon color
--exmg-sidemenu-hover-background-color--paper-grey-200Item hover background color
--exmg-sidemenu-selected-text-color--primary-colorItem selected text color
--exmg-sidemenu-badge-background-color#ff6978Badge background color
--exmg-sidemenu-badge-color#fffBadge font color

Additional references

Keywords

web-components

FAQs

Package last updated on 03 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts