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.
저자: Christoph Erdmann ([email protected])
파일 보기 프로젝트 열기: 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.

보호된 메소드들

메소드 설명
registerClientEvents ( ) Registers JS event handlers that are listed in [[clientEvents]].
registerPlugin ( string $name, string | null $selector = null ) Registers a specific Materialize plugin and the related events.

메소드 상세

init() 공개 메소드

This method will register the MaterializeAsset bundle. When overriding this method, make sure to call the parent implementation first.
public init ( )

registerClientEvents() 보호된 메소드

Registers JS event handlers that are listed in [[clientEvents]].
protected registerClientEvents ( )

registerPlugin() 보호된 메소드

Registers a specific Materialize plugin and the related events.
protected registerPlugin ( string $name, string | null $selector = null )
$name string the name of the Materialize plugin
$selector string | null the name of the selector the plugin shall be attached to

프로퍼티 상세

$clientEvents 공개적으로 프로퍼티

the event handlers for the underlying Materialize JS plugin. Please refer to the corresponding Materialize documentation web page.
또한 보기: http://materializecss.com/
public $clientEvents

$clientOptions 공개적으로 프로퍼티

the options for the underlying Materialize JS plugin. Please refer to the corresponding Materialize documentation web page.
또한 보기: http://materializecss.com/
public $clientOptions