angular-pageslide-directive

WebJar for angular-pageslide-directive

License

License

MIT
Categories

Categories

IDE Development Tools Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-pageslide-directive
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

angular-pageslide-directive
WebJar for angular-pageslide-directive
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/dpiccone/ng-pageslide

Download angular-pageslide-directive

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-pageslide-directive/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-pageslide-directive</artifactId>
    <version>2.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-pageslide-directive/
implementation 'org.webjars.bower:angular-pageslide-directive:2.0.1'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-pageslide-directive/
implementation ("org.webjars.bower:angular-pageslide-directive:2.0.1")
'org.webjars.bower:angular-pageslide-directive:jar:2.0.1'
<dependency org="org.webjars.bower" name="angular-pageslide-directive" rev="2.0.1">
  <artifact name="angular-pageslide-directive" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-pageslide-directive', version='2.0.1')
)
libraryDependencies += "org.webjars.bower" % "angular-pageslide-directive" % "2.0.1"
[org.webjars.bower/angular-pageslide-directive "2.0.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bower : angular jar 1.5.5

Project Modules

There are no modules declared in this project.

AngularJS Pageslide Directive

An AngularJS directive which slides another panel over your browser to reveal an additional interaction pane.

It does all the css manipulation needed to position your content off canvas.

See it in action HERE

Examples in the repository, run them with npm run examples

Build Status Coverage Status

Usage

Use within your Angular app

npm install --save angular-pageslide-directive

var app = angular.module("app", ["pageslide-directive"]);

Just use the <pageslide> element or attribute inside a controller scope like this:

please note that you need an outer controller to define the scope of your checked model

also you need an inner <div> to wrap your content in

<div ... ng-controller="yourCtrl">
    ...
    <pageslide ps-open="checked">
        <div>
            <p>some random content...</p>
        </div>
    </pageslide>
    ...
</div>

Options:

pageslide (required)

// Configuration
ps-side (optional) = Where the panel should appear (right,left,top,bottom), if empty defaults to "right"
ps-container (optional) = custom CSS ID selector to which the slider div appends (e.g: <div id='myDiv'/> -> ps-container="myDiv")
ps-body-class (optional) = if true adds a class on the container body reflecting the state of the pageslide

// Interaction
ps-open (optional) = Boolean true/false used to open and close the panel (optional)
ps-auto-close (optional) = true if you want the panel to close on location change
ps-key-listener (optional) = close the sidebar with the ESC key (defaults to false)
ps-click-outside (optional) = close the sidebar by clicking outside (defaults to true)
ps-push (optional) = push the main body to show the panel (defaults to false)

// Style
ps-class (optional) = The class for the pageslide (default: "ng-pageslide")
ps-speed (optional) = The speed of the transition (optional)
ps-size (optional) = desired height/width of panel (defaults to 300px)
ps-zindex (optional) = desired z-index (defaults to 1000)

Licensing

Licensed under MIT

Author

2013, Daniele Piccone www.danielepiccone.com

Versions

Version
2.0.1
1.4.4
1.4.3