PHP 클래스 macgyer\yii2materializecss\widgets\Button

There are three main button types described in Materialize. - the raised button is a standard button that signifies actions and seek to give depth to a mostly flat page - the floating circular action button is meant for very important functions - flat buttons are usually used within elements that already have depth like cards or modals The button can be displayed with an optional icon. This class uses the [[Icon|Icon]] widget to show icons.
또한 보기: http://materializecss.com/buttons.html
저자: Christoph Erdmann ([email protected])
상속: extends macgyer\yii2materializecss\lib\BaseWidget
파일 보기 프로젝트 열기: macgyer/yii2-materializecss 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$disabled whether the button shall be disabled.
$encodeLabel whether the label should be HTML-encoded.
$icon the options for the optional icon. To specify an icon you can use the following parameters: php [ 'name' => 'name of the icon', // required 'position' => 'position of the icon', // optional, 'left' or 'right', defaults to 'left' 'options' => 'the HTML attributes for the img', // optional ]
$label the label on the button. If you do not want a label text to be rendered, set this options to "false".
$large whether the button shall be of larger size.
$tagName the tag used to render the button.
$type the type of button to be rendered. The following options are supported: - raised - floating - flat This property defaults to "raised". To set the type, use the corresponding TYPE_* constant of this class. If no type from this range is given, the button will be of the "raised" type.

공개 메소드들

메소드 설명
init ( ) Initializes the widget.
run ( ) : string Executes the widget.

보호된 메소드들

메소드 설명
renderIcon ( ) : string Renders an icon.

메소드 상세

init() 공개 메소드

Initializes the widget.
public init ( )

renderIcon() 보호된 메소드

Renders an icon.
또한 보기: Icon::run
protected renderIcon ( ) : string
리턴 string the rendered icon

run() 공개 메소드

Executes the widget.
public run ( ) : string
리턴 string the result of widget execution to be outputted.

프로퍼티 상세

$disabled 공개적으로 프로퍼티

whether the button shall be disabled.
public $disabled

$encodeLabel 공개적으로 프로퍼티

whether the label should be HTML-encoded.
public $encodeLabel

$icon 공개적으로 프로퍼티

the options for the optional icon. To specify an icon you can use the following parameters: php [ 'name' => 'name of the icon', // required 'position' => 'position of the icon', // optional, 'left' or 'right', defaults to 'left' 'options' => 'the HTML attributes for the img', // optional ]
public $icon

$label 공개적으로 프로퍼티

the label on the button. If you do not want a label text to be rendered, set this options to "false".
public $label

$large 공개적으로 프로퍼티

whether the button shall be of larger size.
public $large

$tagName 공개적으로 프로퍼티

the tag used to render the button.
public $tagName

$type 공개적으로 프로퍼티

the type of button to be rendered. The following options are supported: - raised - floating - flat This property defaults to "raised". To set the type, use the corresponding TYPE_* constant of this class. If no type from this range is given, the button will be of the "raised" type.
public $type