navybits:bootstrap-iconpicker is a simple wrapper on bootstrap-iconpicker that supports fontawsome icons picker packaged for Meteor Usage.
- jquery
- twbs:bootstrap
meteor add navybits:bootstrap-iconpicker
- Inside your template, for example myIconPickerTemplate.html :
<template name="myIconPickerTemplate">
<button class="btn btn-default" data-iconset="fontawesome" data-icon="fa-globe" role="iconpicker"></button>
</template>
- In your template controller, for example myIconPickerTemplate.js:
Template.myIconPickerTemplate.rendered = function() {
$('button[role="iconpicker"]').iconpicker();
}
Template.myIconPickerTemplate.events({
'change button[role="iconpicker"]':function (e) {
console.log(e.icon);
}
});
1.0.0
MIT