Class humhub\modules\ui\form\widgets\IconPicker

Inheritancehumhub\modules\ui\form\widgets\IconPicker » kartik\select2\Select2
Available since version1.3

IconPicker form field widget

Usage example:

 <?= $activeForm->field($form, 'icon')->widget(IconPicker::class); ?>

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$lib string Optional icon provider id humhub\modules\ui\form\widgets\IconPicker

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
populateIconList() Populate data with icon list humhub\modules\ui\form\widgets\IconPicker

Property Details

$lib public property

Optional icon provider id

public string $lib null

Method Details

getIconNames() public method

Returns a list of available icons

public array getIconNames ( )
return array

A list of icons

init() public method

public void init ( )
populateIconList() protected method

Populate data with icon list

protected void populateIconList ( )
renderInput() public method

public void renderInput ( )
run() public method

public void run ( )