Code Monkey home page Code Monkey logo

dc-tabs's Introduction

dc-tabs

NOTE: This addon is a port from http://instructure.github.io/ic-tabs into an ember-cli addon. The port was made out of samheucks fork on the master branch @ad25734fdb and then changed to lazy render tabs. This fork was made as ic-tabs seemed to have stopped being maintained and it needed updating to the latest ember version and tools.

Todos:

  • Port tests to ember-cli
  • Tie together examples page
  • Travis CI
  • Demo page

[WAI-ARIA][wai-aria] accessible tab component for [Ember.js][ember].

Installation

$ ember install:addon dc-tabs

Usage

{{#dc-tabs}}
  {{#dc-tab-list}}
    {{#dc-tab}}Foo{{/dc-tab}}
    {{#dc-tab}}Bar{{/dc-tab}}
    {{#dc-tab}}Baz{{/dc-tab}}
  {{/dc-tab-list}}

  {{#dc-tab-panel}}
    <h2>Foo</h2>
  {{/dc-tab-panel}}

  {{#dc-tab-panel}}
    <h2>Bar</h2>
  {{/dc-tab-panel}}

  {{#dc-tab-panel}}
    <h2>Baz</h2>
  {{/dc-tab-panel}}
{{/dc-tabs}}
  • associations between tabs and tab-panes are inferred by order.
  • dc-tab-list must be an immediate child of dc-tabs
  • dc-tab must be an immediate child of dc-tab-list
  • dc-tab-panel must be an immediate child of dc-tabs

Styles can be imported as 'dc-tabs' into your app style sheet.

Options

  • {{dc-tabs selected-index=prop}} - binds the active-index to prop, mostly useful for queryParams.

Contributing

$ git clone <this repo>
$ ember install
$ ember server / ember test

dc-tabs's People

Contributors

jrhe avatar redpist avatar ember-tomster avatar

Watchers

 avatar James Cloos avatar  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.