Socket
Socket
Sign inDemoInstall

@bts/slidey

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @bts/slidey

Fit more content onto your pages by nesting slideys indefinitely!


Version published
Weekly downloads
12
increased by300%
Maintainers
1
Install size
70.3 kB
Created
Weekly downloads
 

Readme

Source

Slidey

NPM Version NPM Downloads Travis Coveralls

Commitizen friendly semantic-release Greenkeeper badge

Registers filter components allowing for a single input and output!

Install

You can install this package either with npm or with bower.

npm

$ npm install @bts/slidey

Then add a <script> to your index.html:

<script src="/node_modules/@bts/slidey/dist/slidey.js"></script>

Or require('@bts/slidey') from your code.

bower

$ bower install BerkleyTechnologyServices/slidey

Then add a <script> to your index.html:

<script src="/bower_components/slidey/dist/slidey.js"></script>

Example

Live Demo

Usage

<bts-slidey opened="someBooleanValue">
  My content that will appear in the aside
  <bts-slidey opened="someOtherBooleanValue">
    My content that will appear in the nested aside
  </bts-slidey>
</bts-slidey>

Bindings

Opened

Default: false

Description

Determines whether the slidey is opened or closed.

Example

<bts-slidey opened="true">
  My super cool content!
</bts-slidey>

Content Width

Default: 80%

Description

Determines the width of the slidey when opened.

Example

<bts-slidey content-width="200px">
  My super cool content!
</bts-slidey>

Reflow Container

Default: undefined

Description

Adjusts the height of the container to the height of the active slidey.

Example

<div id="modal">
  <bts-slidey reflow-container="modal">
    My super cool content!
  </bts-slidey>
</div>

Known Issues

  • When a transition is placed on height it is not animated in all cases unless the container has a height specified.

Events

Close

Description

Fires off when the opened binding changes from true to false.

Example

<bts-slidey on-close="$ctrl.onClose()">
  My super cool content!
</bts-slidey>

Close Finished

Description

Fires off when the closing animation finishes.

Example

<bts-slidey on-close-finished="$ctrl.onCloseFinished()">
  My super cool content!
</bts-slidey>

Keywords

FAQs

Last updated on 15 Aug 2018

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