• Stars
    star
    100
  • Rank 340,703 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An AngularJS module that provides a slide out menu for your application.

DEPRECATED

As an alternative, please consider using https://github.com/dpiccone/ng-pageslide instead

ng-mobile-menu

An AngularJS module that provides a slide out menu for your application.

Usage

Include the CSS and JS files:

<link rel="stylesheet" href="ng-mobile-menu.min.css" />
<link rel="stylesheet" href="your-custom-stylesheet.css" />

<!-- ng-mobile-menu.js should be referenced after Angular and before your app -->
<script type="text/javascript" src="angular.js"></script>
<script type="text/javascript" src="ng-mobile-menu.min.js"></script>
<script type="text/javascript" src="your-angular-app.js"></script>

Add shoppinpal.mobile-menu as dependency in your app.

angular.module('your-awesome-app',['shoppinpal.mobile-menu']);

Then you just need to structure your HTML like this:

<div id="sp-nav">
<!-- put your menu in here -->
</div>

<div id="sp-page">
<!-- put your page content in here -->
</div>

Hide and show the menu in an ngClick like this ng-click="$spMenu.toggle()". (.show() and .hide() are also available if you need them)

<button ng-click="$spMenu.toggle()">Menu</button>

Demo

Check the /demo folder in the repository for a working demo.

Changelog

0.2.0

Breaking Changes

No longer using href targets to show and hide menu. Now you must use the new $spMenu provider to show and hide the menu.

0.1.3

  • Issue #2 : Change menu to use 80% width for more consistent appearance across mobile device resolutions.
  • On larger screens (tablets, desktops) default width will be 20% for menu
  • Issue #1: Add support for #sp-nav.wide which will always use a width of 80% regardless of screen size. Just add class="wide" to your sp-nav element.

0.1.2

Use hardware accelerated CSS transitions.

0.1.1

Remove horizontal scroll bars when menu is showing.

0.1.0

Initial release

More Repositories

1

StockUp

StockUp [try it out at https://stockup-staging.shoppinpal.com] is the only open source product that delivers 100% automated replenishment, integrations with leading POS and ERPs, and a smooth web application that can be used by your entire Ops crew and external suppliers. Our customers have saved countless hours that would be otherwise lost in grappling with Excel, along with huge increase in accountability. Feel free to clone the project and write to us at [email protected] with what you'd like to achieve and how we can help!
JavaScript
57
star
2

gcp-scripts

Scripts for making life easier and predictable on Google Cloud platform
32
star
3

multi-tenant-loopback-example

A sample which demonstrates how to achieve multi-tenancy in loopback apps
JavaScript
22
star
4

Materializecss-Autocomplete

Small material design autocomplete library for materializecss
JavaScript
12
star
5

vend-php-api

PHP
11
star
6

vend-nodejs-sdk

Aims to provides a rich set of client-side functionality for Vend's public APIs
JavaScript
9
star
7

parse2loopback

An example of the manual steps required to convert a loopback generated scaffolding into Parse.com like REST API server
JavaScript
5
star
8

loopback-mongo-sandbox

Get running with LoopbackJS and MongoDB quickly.
JavaScript
4
star
9

ng-scratch-off

An AngularJS module that provides a CSS based scratch off card.
JavaScript
3
star
10

vend-tools

A command-line-interface (CLI) which allows you to easily perform custom tasks for your vendhq.com instance
JavaScript
3
star
11

mongodb-nodejs-sdk

An utility MongoDB library written in NodeJS. An end to end plausible solution to deal with MongoDB.
JavaScript
3
star
12

dolaterio

Go
2
star
13

dockerfile-analyzer

A static analyzer for Dockerfile which should help implement best practices given any Dockerfile as input
2
star
14

vend-oauth-example

Quickly get an oauth token to use with Vend API calls
JavaScript
2
star
15

intranet-router-node

Intranet-Router handles the jobs from the queue that cloud-router posts to.
JavaScript
1
star
16

warehouse-manager-generate-stock-order

Generate Stock Orders for a Warehouse Manager
JavaScript
1
star
17

sp-json-logger

JavaScript
1
star
18

php-yapep-common

Common extensions to the Yapep Base Framework, as used by shoppinpal
PHP
1
star
19

multi-tenant-loopback-example-two

The key difference from other examples: Organization has User as its base model
JavaScript
1
star
20

docs.shoppinpal.com

CSS
1
star
21

cloud-pos-router

A cloud implementation which uses RabbitMQ to delegate requests/jobs to its counterpart (intranet-pos-agent) sitting in someone's intranet.
Java
1
star
22

loopback-deploy-to-gcp

Sample loopback (NodeJS) app which can be deployed to Google Cloud Platform (GCP)
JavaScript
1
star