bootstrap-for-ember
bootstrap-for-ember copied to clipboard
Support for html content in nav pill / tab title
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:
- Icons
- Badges and labels
To fix this, I think that BsPill could just be updated to use a triple-stash {{{view.title}}}
.
@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