0.2.0 • Published 1 year ago

@affinitic/volto-icon-selector-widget v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

volto-icon-selector-widget

Feature

This widget is used to select visualy from a list of icon with a popup and a search field. The icon list is base on Font Awesome 6.4.0

Settings

You can configure the icon list and default search result renderer (ResultRenderer, CategoryRenderer and CategoryLayoutRenderer) in config.settings.widget.icon_selector.iconList and config.settings.widget.icon_selector.defaultRenderer

Icon list structure

{
  [category id] : {
    'title': [category title]
    'list': [
      {'name' : [name of the icon]},
      ...
    ]
  },
  ...
}

Getting started

Add volto-block-style to your Volto project

  1. Make sure you have a Plone backend up-and-running at http://localhost:8080/Plone

  2. Start Volto frontend

  • If you already have a volto project, just update package.json:

    "addons": [
        "@affinitic/volto-icon-selector-widget"
    ],
    
    "dependencies": {
        "@affinitic/volto-icon-selector-widget": "^0.0.0"
    }
  • If not, create one:

    npm install -g yo @plone/generator-volto
    yo @plone/volto my-volto-project --addon @affinitic/volto-icon-selector-widget
    cd my-volto-project
  1. Install new add-ons and restart Volto:

    yarn
    yarn start
  2. Go to http://localhost:3000

  3. Happy editing!

0.2.0

1 year ago

0.1.0

1 year ago