ember-frost-link
v2.0.1
Published
The default blueprint for ember-cli addons.
Downloads
48
Readme
This repo has been ported to ember-frost-core - no more PRs will be accepted.
ember-frost-link
Installation
ember install ember-frost-link
API
| Attribute | Type | Value | Description |
| --------- | ---- | ----- | ----------- |
| disabled
| boolean
| false
| default: Click to redirect from one route to another |
| | | true
| :no_entry_sign: Can't click this! :notes: |
| size
| string
| small
| The smallest link you ever did see |
| | | medium
| default: Not quite as small as small
, but not very big either |
| | | large
| Now that's what I call a link! |
| priority
| string
| primary
| Call-to-action :telephone: |
| | | secondary
| default: Run of the mill, garden variety |
| | | tertiary
| Low-key, subdued |
Examples
Primary small
{{#frost-link
'routename'
priority='primary'
size='small'
}}
<div class='text'>Primary</div>
{{/frost-link}}
Font based on size
{{#frost-link
'routename'
priority='tertiary'
}}
<div class='text'>Tertiary</div>
{{/frost-link}}
Development
Setup
git clone [email protected]:ciena-frost/ember-frost-link.git
cd ember-frost-link
npm install && bower install
Development Server
A dummy application for development is available under ember-frost-link/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.