Now.js Framework Documentation

Now.js Framework Documentation

IconPickerComponent

EN 04 Sep 2026 01:40

IconPickerComponent

Now.js – IconPickerComponent Reusable icon-picker: renders a radio button grid for selecting an icomoon icon class. Compatible with the GCMS admin form data-attr binding system. Usage in templates (data-attr binding from form API load):

Usage with a static pre-selected value: Props: data-name — radio input name attribute (default: 'icon') data-value — initially selected icon class; omit when using data-attr form binding Programmatic API: IconPicker.create(el, { name: 'icon', value: 'icon-home' }) IconPicker.icons() → string[] of all available icon class names

Generated from source on 2026-08-21. Descriptions come from JSDoc in the file.
Re-run docs_scaffold when the code changes; hand edits are lost on regeneration

Source

  • File: Now/js/IconPickerComponent.js (318 lines)
  • Form: object literal (singleton)

Public methods (4)

create(el, {name = 'icon', value = ''} = {})

Build an icon picker inside el without the ComponentManager. Useful inside the Designer inspector or any JS-rendered panel.

getValue(el)

Get the currently selected icon class from a picker element.

icons()

All available icon class names (excludes the empty "None" option).

setValue(el, value)

Update the selected value in an already-built picker.

Depends on

ComponentManager