gavant-ember-button-link

0.0.3 • Public • Published

gavant-ember-button-link

A button component wrapper for {{link-to}}.

Installation

ember install gavant-ember-button-link

Usage

{{button-link "Some Link" "some.route" (query-params foo="bar") type="primary"}}
{{#button-link "some.route" type="primary"}}
    Some Link
{{/button-link}}

Extends gavant-ember-button-basic, so it accepts all the same options, except:

  • action
  • bubbles

Also, when using the component in inline form, you CANNOT use the label option, you must pass in the label as the 1st positional component param, e.g. {{button-link "Label" "route"}}.

Contributing

Installation

  • git clone <repository-url>
  • cd gavant-ember-button-link
  • npm install

Linting

  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i gavant-ember-button-link

Weekly Downloads

0

Version

0.0.3

License

none

Unpacked Size

254 kB

Total Files

10

Last publish

Collaborators

  • billdami