Code Monkey home page Code Monkey logo

ember-frost-info-bar's Introduction

ember-frost-info-bar

Dependencies

Ember NPM

Health

Travis Coveralls

Security

bitHound

Ember Observer score

EmberObserver

Installation

ember install ember-frost-info-bar

Examples

Template

{{frost-info-bar
  hook='info-bar'
  icon=(component 'frost-icon'
    hook='baconIcon'
    isVisible=isIconVisible
    icon='bacon'
    pack='dummy'
  )
  title=(component 'text-box'
    isVisible=isTitleVisible
    text='<placeholder: title>'
  )
  summary=(component 'text-box'
    isVisible=isSummaryVisible
    text='<placeholder: summary>'
  )
  scope=(component 'text-box'
    isVisible=isScopeVisible
    text='<placeholder: controls>'
  )
  controls=(array
    (component 'frost-button'
      isVisible=isControlsVisible
      icon='add'
      text='Click me!'
      onClick=(action 'triggerAction')
    )
  )
}}

Testing with ember-hook

The info-bar component is accessible using ember-hook with the top level hook name or you can access the internal components as well -

  • Default top level hook - $hook('info-bar')
  • Icon slot hook - $hook('<hook-name>-icon')
  • Title slot hook - $hook('<hook-name>-title')
  • Summary slot hook - $hook('<hook-name>-summary')'
  • Controls slot hook - $hook('<hook-name>-controls')'
  • Controls slot item hook - $hook('<hook-name>-controls-<index>')'
  • Actions slot - $hook('<hook-name>-action')'

Development

Setup

git clone [email protected]:ciena-frost/ember-frost-info-bar.git
cd ember-frost-info-bar
npm install && bower install

Development Server

A dummy application for development is available under ember-frost-info-bar/tests/dummy. To run the server run ember server (or npm start) from the root of the repository and visit the app at http://localhost:4200.

Testing

Run npm test from the root of the project to run linting checks as well as execute the test suite and output code coverage.

ember-frost-info-bar's People

Contributors

adamward1995 avatar dafortin avatar ewhite613 avatar juwara0 avatar nicklewanowicz avatar notmessenger avatar oadeojo avatar quincyle avatar rox163 avatar sandersky avatar sglanzer avatar srowhani avatar travis-ci-ciena avatar vesper2000 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.