PHP Класс macgyer\yii2materializecss\widgets\Icon

Please note that the Materialize icons are shipped in a separate font file. This font file is automatically registered by the [[\macgyer\yii2materializecss\assets\MaterializeAsset|MaterializeAsset]]. If you do not load the default [[\macgyer\yii2materializecss\assets\MaterializeAsset|MaterializeAsset]] make sure to at least load [[\macgyer\yii2materializecss\assets\MaterializeFontAsset|MaterializeFontAsset]] (or another source providing the font file) to correctly display the icons.
См. также: http://materializecss.com/icons.html
Автор: Christoph Erdmann ([email protected])
Наследование: extends macgyer\yii2materializecss\lib\BaseWidget
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$name the name of the icon.
$options the HTML options for the icon tag. The following special options are recognized: - tag: string, defaults to "i"
$position the position of the icon. Currently "left" and "right" are natively supported by Materialize, but you can set this property to a custom string which will be added to the HTML class attribute and thus can be individually styled. The default icon position is "left".

Открытые методы

Метод Описание
init ( ) Initializes the widget.
run ( ) : string Executes the widget.

Описание методов

init() публичный Метод

Initializes the widget.
public init ( )

run() публичный Метод

Executes the widget.
public run ( ) : string
Результат string the result of widget execution to be outputted.

Описание свойств

$name публичное свойство

the name of the icon.
См. также: http://materializecss.com/icons.html
public $name

$options публичное свойство

the HTML options for the icon tag. The following special options are recognized: - tag: string, defaults to "i"
См. также: [yii\helpers\BaseHtml::renderTagAttributes()](http://www.yiiframework.com/doc-2.0/yii-helpers-basehtml.html#renderTagAttributes()-detail) for details on how attributes are being rendered.
public $options

$position публичное свойство

the position of the icon. Currently "left" and "right" are natively supported by Materialize, but you can set this property to a custom string which will be added to the HTML class attribute and thus can be individually styled. The default icon position is "left".
public $position