Giter Site home page Giter Site logo

jangolano / slidey Goto Github PK

View Code? Open in Web Editor NEW

This project forked from berkleytechnologyservices/slidey

0.0 1.0 0.0 250 KB

Fit more content onto your pages by nesting slideys indefinitely!

License: Apache License 2.0

CSS 5.17% HTML 6.87% JavaScript 87.95%

slidey's Introduction

Slidey

NPM Version NPM Downloads Travis Coveralls

Commitizen friendly semantic-release Greenkeeper badge

Registers filter components allowing for a single input and output!

Supported Browsers

If a version isn't specified that means we test on the latest and greatest, however most versions of that browser should work.

  • Chrome
  • Firefox
  • Safari 8+
  • Edge
  • IE 11

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>

slidey's People

Contributors

greenkeeper[bot] avatar berkley-bot avatar semantic-release-bot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.