PHP 클래스 kartik\tree\TreeViewInput

부터: 1.0
저자: Kartik Visweswaran ([email protected])
상속: extends TreeView
파일 보기 프로젝트 열기: kartik-v/yii2-tree-manager 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$asDropdown whether to show the input as a dropdown select. If set to false, it will display directly the tree view selector widget. Defaults to true. The BootstrapPluginAsset will automatically be loaded if this is set to true. Defaults to true.
$attribute the model attribute that this widget is associated with.
$autoCloseOnSelect whether to autoclose the dropdown on input selection when asDropdown is true. Defaults to true.
$dropdownConfig the configuration of the tree view dropdown. The following configuration options are available: - input: array the HTML attributes for the dropdown input container which displays the selected tree items. The following special options are available: - placeholder: string, defaults to Select... - dropdown: array, the HTML attributes for the dropdown tree view menu. - options: array, the HTML attributes for the wrapper container - caret: string, the markup for rendering the dropdown indicator for up and down. Defaults to TreeViewInput::CARET.
$model the data model that this widget is associated with.
$name the input name. This must be set if [[model]] and [[attribute]] are not set.
$options the HTML attributes for the input that will store the selected nodes for the widget
$showToolbar whether to show the toolbar in the footer. Defaults to false.
$value the input value.

공개 메소드들

메소드 설명
getInput ( ) : string Generates the hidden input for storage
registerInputAssets ( ) Registers assets for TreeViewInput
renderToolbar ( ) : string Renders the markup for the button actions toolbar
renderWidget ( )
run ( )

보호된 메소드들

메소드 설명
hasModel ( ) : boolean
initDropdown ( ) Initialize tree dropdown menu settings and options
initTreeView ( )
renderDropdown ( string $content ) : string Generates the dropdown tree menu

메소드 상세

getInput() 공개 메소드

Generates the hidden input for storage
public getInput ( ) : string
리턴 string

hasModel() 보호된 메소드

protected hasModel ( ) : boolean
리턴 boolean whether this widget is associated with a data model.

initDropdown() 보호된 메소드

Initialize tree dropdown menu settings and options
protected initDropdown ( )

initTreeView() 보호된 메소드

protected initTreeView ( )

registerInputAssets() 공개 메소드

Registers assets for TreeViewInput
public registerInputAssets ( )

renderDropdown() 보호된 메소드

Generates the dropdown tree menu
protected renderDropdown ( string $content ) : string
$content string the content to be embedded in the dropdown menu
리턴 string

renderToolbar() 공개 메소드

Renders the markup for the button actions toolbar
public renderToolbar ( ) : string
리턴 string

renderWidget() 공개 메소드

public renderWidget ( )

run() 공개 메소드

public run ( )

프로퍼티 상세

$asDropdown 공개적으로 프로퍼티

whether to show the input as a dropdown select. If set to false, it will display directly the tree view selector widget. Defaults to true. The BootstrapPluginAsset will automatically be loaded if this is set to true. Defaults to true.
public $asDropdown

$attribute 공개적으로 프로퍼티

the model attribute that this widget is associated with.
public $attribute

$autoCloseOnSelect 공개적으로 프로퍼티

whether to autoclose the dropdown on input selection when asDropdown is true. Defaults to true.
public $autoCloseOnSelect

$dropdownConfig 공개적으로 프로퍼티

the configuration of the tree view dropdown. The following configuration options are available: - input: array the HTML attributes for the dropdown input container which displays the selected tree items. The following special options are available: - placeholder: string, defaults to Select... - dropdown: array, the HTML attributes for the dropdown tree view menu. - options: array, the HTML attributes for the wrapper container - caret: string, the markup for rendering the dropdown indicator for up and down. Defaults to TreeViewInput::CARET.
public $dropdownConfig

$model 공개적으로 프로퍼티

the data model that this widget is associated with.
public $model

$name 공개적으로 프로퍼티

the input name. This must be set if [[model]] and [[attribute]] are not set.
public $name

$options 공개적으로 프로퍼티

the HTML attributes for the input that will store the selected nodes for the widget
public $options

$showToolbar 공개적으로 프로퍼티

whether to show the toolbar in the footer. Defaults to false.
public $showToolbar

$value 공개적으로 프로퍼티

the input value.
public $value