ember-addons / bootstrap-for-ember

Bootstrap for Ember.js
http://ember-addons.github.io/bootstrap-for-ember
Apache License 2.0
704 stars 103 forks source link

Support for html content in nav pill / tab title #103

Open steakchaser opened 10 years ago

steakchaser commented 10 years ago

Currently the BsPill view uses a double-stash {{view.title}} for it's template, which does not make it possible to include html in the title of a pill or tab. Examples of html that would be pretty common are:

To fix this, I think that BsPill could just be updated to use a triple-stash {{{view.title}}}.

asaf commented 10 years ago

@steakchaser Ehmm, I don't think it's a good idea because the items are usually defined in controller and putting html tags in controller is wrong,

Maybe we can extend it by providing icon: 'some-icon-class-name' or support for badges, otherwise you can always extend from BsPill and override its template/view

Thanks