Skip to content

This is a clone of riotgear sidemenu, since it has been removed from npm

Notifications You must be signed in to change notification settings

kartena/riot-sidemenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Use

Add this to your Riot app markup

<rg-sidemenu sidemenu="{ sidemenu }"></rg-sidemenu>

and add this to your JavaScript

this.sidemenu = {
  header: 'Side Menu',
  expanded: false,
  items: [
    { text: 'Item 1', action: function () {} },
    { text: 'Item 2', action: function () {} }
  ]
};

To make the menu slide in and out toggle the expanded property

this.sidemenu.expanded = true|false;

About

This is a clone of riotgear sidemenu, since it has been removed from npm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published