PHP 트레잇 macgyer\yii2materializecss\lib\MaterializeWidgetTrait
Please note: a class using this trait must declare a public field named
options with the array default value:
php
class MyWidget extends \yii\base\Widget
{
use MaterializeWidgetTrait;
public $options = [];
}
This field is not present in the trait in order to avoid possible PHP Fatal error on definition conflict.
파일 보기
프로젝트 열기: macgyer/yii2-materializecss
공개 프로퍼티들
프로퍼티 |
타입 |
설명 |
|
$clientEvents |
|
the event handlers for the underlying Materialize JS plugin.
Please refer to the corresponding Materialize documentation web page. |
|
$clientOptions |
|
the options for the underlying Materialize JS plugin.
Please refer to the corresponding Materialize documentation web page. |
|
공개 메소드들
메소드 |
설명 |
|
init ( ) |
Initializes the widget. |
|
보호된 메소드들
메소드 상세
This method will register the MaterializeAsset bundle. When overriding this method,
make sure to call the parent implementation first.
registerClientEvents()
보호된 메소드
Registers JS event handlers that are listed in [[clientEvents]].
Registers a specific Materialize plugin and the related events.
프로퍼티 상세
the event handlers for the underlying Materialize JS plugin.
Please refer to the corresponding Materialize documentation web page.
$clientOptions 공개적으로 프로퍼티
the options for the underlying Materialize JS plugin.
Please refer to the corresponding Materialize documentation web page.