Git Product home page Git Product logo

ember-paper-cuts's Introduction

Ember Paper Cuts

It'll hurt when you have to upgrade, but it won't kill you

About

This project aims to make Material Design components available that have not been officially implemented by Ember Paper. The goal is to build temporary components that closely follow Ember Paper and Angular Material conventions. This will help the transition to officially supported components, but there are no guarantees!

Installation

This project depends on Ember Paper and Ember-cli

Add the following to your package.json file's devDependencies:

"ember-paper-cuts": "git://github.com/CoachLogix/ember-paper-cuts.git"

Component Examples

Data tables

{{#paper-table}}
  <thead>
    <tr>
      <th class="icon-column"></th>
      <th>>Name</th>
      <th>Age</th>
      <th>Location</th>
    </tr>
  </thead>
  <tbody>
    {{#each models as |item|}}
      {{#paper-row}}
        {{#paper-column icon="true"}}
          {{some-avatar src=item.image}}
        {{/paper-column}}
        {{#paper-column}}{{item.name}}{{/paper-column}}
        {{#paper-column}}{{item.age}}{{/paper-column}}
        {{#paper-column}}{{item.location}}{{/paper-column}}
      {{/paper-row}}
    {{/each}}
  </tbody>
{{/paper-table}}

Dropdown menu items

Styled for used in a menu-bar-style menu, with optional checkmark or other icon and command key shortcut.

{{#paper-menu position="target bottom" width=2 dense=true as |menu|}}
  {{#paper-button  onClick=(action "toggleMenu" target=menu) icon-button=true}}
    {{paper-icon "create" class="md-menu-origin"}}
  {{/paper-button}}
{{else}}
  {{#paper-dropdown-menu-item
        onClick=(action "toggleDone")
        checked=isDone
        disabled=isntSelected
        shortcut="Ctrl+Alt+V"}}
    Mark as done
  {{/paper-dropdown-menu-item}}
  {{#paper-dropdown-menu-item
        onClick=(action "togglePageBreak")
        checked=isPageBreak
        disabled=isntSelected
        shortcut="Ctrl+Alt+P"}}
    Start new page
  {{/paper-dropdown-menu-item}}
{{/paper-menu}}

Disclaimer

Use this extension at your own risk.

ember-paper-cuts's People

Contributors

danchadwick avatar ember-tomster avatar mellatone avatar

Watchers

 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.