meteor-autoform-faicon
AutoForm extension to select a font awesome icon from a list of icons. Will only save the icon classname without the fa-
prefix.
Current status
- only single element selectable (multiple will follow)
- only font awesome 4.7 (fa 5 will follow, including backwards compatibility)
- hrd dependency to js-yaml, will be decoupled
Usage
Define the icon type as any other AutoForm extension in your simple schema:
1{ 2 icon: { 3 type: String, 4 label: 'List element icon', 5 autoform: { 6 type: 'faicon', 7 multiple: true, // Coming soon 8 version: 5, // Coming soon 9 options() { 10 return [/* list of icons */] // coming soon 11 } 12 }, 13 }, 14}