Skip to content

dafortin/ember-frost-info-bar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A generic info bar pattern with title+subtitle+action button

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 66.9%
  • HTML 16.9%
  • CSS 10.7%
  • Shell 5.5%