Socket
Socket
Sign inDemoInstall

aurelia-swipeout

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aurelia-swipeout

A custom element for iOS style swipeout actions, backed by Hammer.js


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
916 kB
Created
Weekly downloads
 

Readme

Source

Aurelia Swipeout

A custom element for iOS style swipeout actions, backed by Hammer.js

Demo

Preview


Installation

Install the package via npm:

npm install --save aurelia-swipeout

Install the plugin in your Aurelia project:

export function configure(aurelia: Aurelia): void {
    aurelia.use.plugin(PLATFORM.moduleName('aurelia-swipeout'));
}

Import the Sass stylesheet:

@import '~aurelia-swipeout/style/swipeout';

Usage

A full example can be found here.

Below is a simplified usage example:

<swipeout>
  <div slot="left">
    <button class="swipeout__action">
      My Left Action
    </button>
  </div>

  <div slot="right">
    <a class="swipeout__action">
      My Right Action
    </a>
  </div>

  <div slot="content">
    Hello World
  </div>
</swipeout>

Which results in the following:

Example

Contributing

Bug reports and pull requests are welcome on GitHub.

License

This project is available under the terms of the ISC license. See the LICENSE file for the copyright information and licensing terms.

Keywords

FAQs

Last updated on 26 Nov 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc