0.0.4 • Published 6 years ago

ember-addon-header-toolbar v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

ember-addon-header-toolbar

Installation

  • ember install ember-addon-header-toolbar

or add them to the package.json and run npm install

Example usage

{{f-toolbar}}
{{f-toolbar
  headerTitle=headerTitle
  headerSubtitle=headerSubtitle
  leftIcon=leftIcon
  rightIcon=rightIcon
  leftIconAction=leftIconAction
  rightIconAction=rightIconAction
  backgroundColor=backgroundColor
  textColor=textColor
}}

Types

headerTitle: String
headerSubtitle: String
leftIcon: String
rightIcon: String
leftIconAction: String
rightIconAction: String
backgroundColor: String
textColor: String

SASS variables

Those variables are applied when props 'backGroundActive' and 'textActive'
are not provided

$f-toolbar-background: #0000ff;
$f-toolbar-color: #fff;

Additional info

The addon is integrated with helper "helpers/optional-action.js"
which handles empty action events.

This allows the addon to have only one or none actions.

Running

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server