项目作者: jankapunkt

项目描述 :
AutoForm extension to select a font awesome icon from a list of icons. Will only save the icon classname without the `fa-` prefix.
高级语言: JavaScript
项目地址: git://github.com/jankapunkt/meteor-autoform-faicon.git
创建时间: 2018-04-18T08:56:00Z
项目社区:https://github.com/jankapunkt/meteor-autoform-faicon

开源协议:MIT License

下载


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. }