Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
c94a40e9
Commit
c94a40e9
authored
Mar 11, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added a large amount of missing documentation
parent
79457ce6
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
192 additions
and
66 deletions
+192
-66
Choice.php
extensions/authclient/widgets/Choice.php
+1
-0
ButtonDropdown.php
extensions/bootstrap/ButtonDropdown.php
+1
-0
NavBar.php
extensions/bootstrap/NavBar.php
+8
-2
Progress.php
extensions/bootstrap/Progress.php
+4
-2
Tabs.php
extensions/bootstrap/Tabs.php
+4
-0
Widget.php
extensions/bootstrap/Widget.php
+1
-0
Accordion.php
extensions/jui/Accordion.php
+6
-0
DatePicker.php
extensions/jui/DatePicker.php
+1
-0
Selectable.php
extensions/jui/Selectable.php
+5
-1
SliderInput.php
extensions/jui/SliderInput.php
+1
-0
Sortable.php
extensions/jui/Sortable.php
+5
-1
Tabs.php
extensions/jui/Tabs.php
+6
-1
Widget.php
extensions/jui/Widget.php
+1
-0
Captcha.php
framework/captcha/Captcha.php
+3
-0
CheckboxColumn.php
framework/grid/CheckboxColumn.php
+14
-0
Column.php
framework/grid/Column.php
+19
-1
DataColumn.php
framework/grid/DataColumn.php
+8
-0
GridView.php
framework/grid/GridView.php
+30
-9
BaseHtml.php
framework/helpers/BaseHtml.php
+47
-45
ActiveField.php
framework/widgets/ActiveField.php
+8
-0
ActiveForm.php
framework/widgets/ActiveForm.php
+1
-2
BaseListView.php
framework/widgets/BaseListView.php
+1
-0
Breadcrumbs.php
framework/widgets/Breadcrumbs.php
+1
-0
DetailView.php
framework/widgets/DetailView.php
+2
-0
InputWidget.php
framework/widgets/InputWidget.php
+1
-0
LinkPager.php
framework/widgets/LinkPager.php
+2
-0
LinkSorter.php
framework/widgets/LinkSorter.php
+2
-1
ListView.php
framework/widgets/ListView.php
+2
-0
MaskedInput.php
framework/widgets/MaskedInput.php
+1
-0
Menu.php
framework/widgets/Menu.php
+4
-0
Pjax.php
framework/widgets/Pjax.php
+2
-1
No files found.
extensions/authclient/widgets/Choice.php
View file @
c94a40e9
...
@@ -72,6 +72,7 @@ class Choice extends Widget
...
@@ -72,6 +72,7 @@ class Choice extends Widget
public
$clientIdGetParamName
=
'authclient'
;
public
$clientIdGetParamName
=
'authclient'
;
/**
/**
* @var array the HTML attributes that should be rendered in the div HTML tag representing the container element.
* @var array the HTML attributes that should be rendered in the div HTML tag representing the container element.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[
public
$options
=
[
'class'
=>
'auth-clients'
'class'
=>
'auth-clients'
...
...
extensions/bootstrap/ButtonDropdown.php
View file @
c94a40e9
...
@@ -39,6 +39,7 @@ class ButtonDropdown extends Widget
...
@@ -39,6 +39,7 @@ class ButtonDropdown extends Widget
public
$label
=
'Button'
;
public
$label
=
'Button'
;
/**
/**
* @var array the HTML attributes of the button.
* @var array the HTML attributes of the button.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[];
public
$options
=
[];
/**
/**
...
...
extensions/bootstrap/NavBar.php
View file @
c94a40e9
...
@@ -42,13 +42,17 @@ class NavBar extends Widget
...
@@ -42,13 +42,17 @@ class NavBar extends Widget
/**
/**
* @var array the HTML attributes for the widget container tag. The following special options are recognized:
* @var array the HTML attributes for the widget container tag. The following special options are recognized:
*
*
* - tag: string, defaults to "nav", the name of the container tag
* - tag: string, defaults to "nav", the name of the container tag.
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[];
public
$options
=
[];
/**
/**
* @var array the HTML attributes for the container tag. The following special options are recognized:
* @var array the HTML attributes for the container tag. The following special options are recognized:
*
*
* - tag: string, defaults to "div", the name of the container tag
* - tag: string, defaults to "div", the name of the container tag.
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$containerOptions
=
[];
public
$containerOptions
=
[];
/**
/**
...
@@ -63,6 +67,7 @@ class NavBar extends Widget
...
@@ -63,6 +67,7 @@ class NavBar extends Widget
public
$brandUrl
;
public
$brandUrl
;
/**
/**
* @var array the HTML attributes of the brand link.
* @var array the HTML attributes of the brand link.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$brandOptions
=
[];
public
$brandOptions
=
[];
/**
/**
...
@@ -76,6 +81,7 @@ class NavBar extends Widget
...
@@ -76,6 +81,7 @@ class NavBar extends Widget
public
$renderInnerContainer
=
true
;
public
$renderInnerContainer
=
true
;
/**
/**
* @var array the HTML attributes of the inner container.
* @var array the HTML attributes of the inner container.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$innerContainerOptions
=
[];
public
$innerContainerOptions
=
[];
...
...
extensions/bootstrap/Progress.php
View file @
c94a40e9
...
@@ -60,7 +60,7 @@ use yii\helpers\Html;
...
@@ -60,7 +60,7 @@ use yii\helpers\Html;
class
Progress
extends
Widget
class
Progress
extends
Widget
{
{
/**
/**
* @var string the button label
* @var string the button label
.
*/
*/
public
$label
;
public
$label
;
/**
/**
...
@@ -68,7 +68,8 @@ class Progress extends Widget
...
@@ -68,7 +68,8 @@ class Progress extends Widget
*/
*/
public
$percent
=
0
;
public
$percent
=
0
;
/**
/**
* @var array the HTML attributes of the bar
* @var array the HTML attributes of the bar.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$barOptions
=
[];
public
$barOptions
=
[];
/**
/**
...
@@ -84,6 +85,7 @@ class Progress extends Widget
...
@@ -84,6 +85,7 @@ class Progress extends Widget
* // optional, array, additional HTML attributes for the bar tag
* // optional, array, additional HTML attributes for the bar tag
* 'options' => [],
* 'options' => [],
* ]
* ]
* ```
*/
*/
public
$bars
;
public
$bars
;
...
...
extensions/bootstrap/Tabs.php
View file @
c94a40e9
...
@@ -75,16 +75,20 @@ class Tabs extends Widget
...
@@ -75,16 +75,20 @@ class Tabs extends Widget
* by the "options" set in individual [[items]]. The following special options are recognized:
* by the "options" set in individual [[items]]. The following special options are recognized:
*
*
* - tag: string, defaults to "div", the tag name of the item container tags.
* - tag: string, defaults to "div", the tag name of the item container tags.
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$itemOptions
=
[];
public
$itemOptions
=
[];
/**
/**
* @var array list of HTML attributes for the header container tags. This will be overwritten
* @var array list of HTML attributes for the header container tags. This will be overwritten
* by the "headerOptions" set in individual [[items]].
* by the "headerOptions" set in individual [[items]].
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$headerOptions
=
[];
public
$headerOptions
=
[];
/**
/**
* @var array list of HTML attributes for the tab header link tags. This will be overwritten
* @var array list of HTML attributes for the tab header link tags. This will be overwritten
* by the "linkOptions" set in individual [[items]].
* by the "linkOptions" set in individual [[items]].
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$linkOptions
=
[];
public
$linkOptions
=
[];
/**
/**
...
...
extensions/bootstrap/Widget.php
View file @
c94a40e9
...
@@ -21,6 +21,7 @@ class Widget extends \yii\base\Widget
...
@@ -21,6 +21,7 @@ class Widget extends \yii\base\Widget
{
{
/**
/**
* @var array the HTML attributes for the widget container tag.
* @var array the HTML attributes for the widget container tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[];
public
$options
=
[];
/**
/**
...
...
extensions/jui/Accordion.php
View file @
c94a40e9
...
@@ -47,6 +47,8 @@ class Accordion extends Widget
...
@@ -47,6 +47,8 @@ class Accordion extends Widget
* @var array the HTML attributes for the widget container tag. The following special options are recognized:
* @var array the HTML attributes for the widget container tag. The following special options are recognized:
*
*
* - tag: string, defaults to "div", the tag name of the container tag of this widget
* - tag: string, defaults to "div", the tag name of the container tag of this widget
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[];
public
$options
=
[];
/**
/**
...
@@ -69,6 +71,8 @@ class Accordion extends Widget
...
@@ -69,6 +71,8 @@ class Accordion extends Widget
* by the "options" set in individual [[items]]. The following special options are recognized:
* by the "options" set in individual [[items]]. The following special options are recognized:
*
*
* - tag: string, defaults to "div", the tag name of the item container tags.
* - tag: string, defaults to "div", the tag name of the item container tags.
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$itemOptions
=
[];
public
$itemOptions
=
[];
/**
/**
...
@@ -76,6 +80,8 @@ class Accordion extends Widget
...
@@ -76,6 +80,8 @@ class Accordion extends Widget
* by the "headerOptions" set in individual [[items]]. The following special options are recognized:
* by the "headerOptions" set in individual [[items]]. The following special options are recognized:
*
*
* - tag: string, defaults to "h3", the tag name of the item container tags.
* - tag: string, defaults to "h3", the tag name of the item container tags.
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$headerOptions
=
[];
public
$headerOptions
=
[];
...
...
extensions/jui/DatePicker.php
View file @
c94a40e9
...
@@ -56,6 +56,7 @@ class DatePicker extends InputWidget
...
@@ -56,6 +56,7 @@ class DatePicker extends InputWidget
public
$inline
=
false
;
public
$inline
=
false
;
/**
/**
* @var array the HTML attributes for the container tag. This is only used when [[inline]] is true.
* @var array the HTML attributes for the container tag. This is only used when [[inline]] is true.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$containerOptions
=
[];
public
$containerOptions
=
[];
...
...
extensions/jui/Selectable.php
View file @
c94a40e9
...
@@ -51,7 +51,9 @@ class Selectable extends Widget
...
@@ -51,7 +51,9 @@ class Selectable extends Widget
/**
/**
* @var array the HTML attributes for the widget container tag. The following special options are recognized:
* @var array the HTML attributes for the widget container tag. The following special options are recognized:
*
*
* - tag: string, defaults to "ul", the tag name of the container tag of this widget
* - tag: string, defaults to "ul", the tag name of the container tag of this widget.
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[];
public
$options
=
[];
/**
/**
...
@@ -72,6 +74,8 @@ class Selectable extends Widget
...
@@ -72,6 +74,8 @@ class Selectable extends Widget
* by the "options" set in individual [[items]]. The following special options are recognized:
* by the "options" set in individual [[items]]. The following special options are recognized:
*
*
* - tag: string, defaults to "li", the tag name of the item container tags.
* - tag: string, defaults to "li", the tag name of the item container tags.
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$itemOptions
=
[];
public
$itemOptions
=
[];
...
...
extensions/jui/SliderInput.php
View file @
c94a40e9
...
@@ -55,6 +55,7 @@ class SliderInput extends InputWidget
...
@@ -55,6 +55,7 @@ class SliderInput extends InputWidget
];
];
/**
/**
* @var array the HTML attributes for the container tag.
* @var array the HTML attributes for the container tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$containerOptions
=
[];
public
$containerOptions
=
[];
...
...
extensions/jui/Sortable.php
View file @
c94a40e9
...
@@ -41,7 +41,9 @@ class Sortable extends Widget
...
@@ -41,7 +41,9 @@ class Sortable extends Widget
/**
/**
* @var array the HTML attributes for the widget container tag. The following special options are recognized:
* @var array the HTML attributes for the widget container tag. The following special options are recognized:
*
*
* - tag: string, defaults to "ul", the tag name of the container tag of this widget
* - tag: string, defaults to "ul", the tag name of the container tag of this widget.
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[];
public
$options
=
[];
/**
/**
...
@@ -62,6 +64,8 @@ class Sortable extends Widget
...
@@ -62,6 +64,8 @@ class Sortable extends Widget
* by the "options" set in individual [[items]]. The following special options are recognized:
* by the "options" set in individual [[items]]. The following special options are recognized:
*
*
* - tag: string, defaults to "li", the tag name of the item container tags.
* - tag: string, defaults to "li", the tag name of the item container tags.
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$itemOptions
=
[];
public
$itemOptions
=
[];
...
...
extensions/jui/Tabs.php
View file @
c94a40e9
...
@@ -56,7 +56,9 @@ class Tabs extends Widget
...
@@ -56,7 +56,9 @@ class Tabs extends Widget
/**
/**
* @var array the HTML attributes for the widget container tag. The following special options are recognized:
* @var array the HTML attributes for the widget container tag. The following special options are recognized:
*
*
* - tag: string, defaults to "div", the tag name of the container tag of this widget
* - tag: string, defaults to "div", the tag name of the container tag of this widget.
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[];
public
$options
=
[];
/**
/**
...
@@ -77,11 +79,14 @@ class Tabs extends Widget
...
@@ -77,11 +79,14 @@ class Tabs extends Widget
* by the "options" set in individual [[items]]. The following special options are recognized:
* by the "options" set in individual [[items]]. The following special options are recognized:
*
*
* - tag: string, defaults to "div", the tag name of the item container tags.
* - tag: string, defaults to "div", the tag name of the item container tags.
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$itemOptions
=
[];
public
$itemOptions
=
[];
/**
/**
* @var array list of HTML attributes for the header container tags. This will be overwritten
* @var array list of HTML attributes for the header container tags. This will be overwritten
* by the "headerOptions" set in individual [[items]].
* by the "headerOptions" set in individual [[items]].
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$headerOptions
=
[];
public
$headerOptions
=
[];
/**
/**
...
...
extensions/jui/Widget.php
View file @
c94a40e9
...
@@ -24,6 +24,7 @@ class Widget extends \yii\base\Widget
...
@@ -24,6 +24,7 @@ class Widget extends \yii\base\Widget
public
static
$theme
=
'yii\jui\ThemeAsset'
;
public
static
$theme
=
'yii\jui\ThemeAsset'
;
/**
/**
* @var array the HTML attributes for the widget container tag.
* @var array the HTML attributes for the widget container tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[];
public
$options
=
[];
/**
/**
...
...
framework/captcha/Captcha.php
View file @
c94a40e9
...
@@ -41,6 +41,7 @@ class Captcha extends InputWidget
...
@@ -41,6 +41,7 @@ class Captcha extends InputWidget
public
$captchaAction
=
'site/captcha'
;
public
$captchaAction
=
'site/captcha'
;
/**
/**
* @var array HTML attributes to be applied to the CAPTCHA image tag.
* @var array HTML attributes to be applied to the CAPTCHA image tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$imageOptions
=
[];
public
$imageOptions
=
[];
/**
/**
...
@@ -51,9 +52,11 @@ class Captcha extends InputWidget
...
@@ -51,9 +52,11 @@ class Captcha extends InputWidget
public
$template
=
'{image} {input}'
;
public
$template
=
'{image} {input}'
;
/**
/**
* @var array the HTML attributes for the input tag.
* @var array the HTML attributes for the input tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[
'class'
=>
'form-control'
];
public
$options
=
[
'class'
=>
'form-control'
];
/**
/**
* Initializes the widget.
* Initializes the widget.
*/
*/
...
...
framework/grid/CheckboxColumn.php
View file @
c94a40e9
...
@@ -39,11 +39,25 @@ use yii\helpers\Html;
...
@@ -39,11 +39,25 @@ use yii\helpers\Html;
*/
*/
class
CheckboxColumn
extends
Column
class
CheckboxColumn
extends
Column
{
{
/**
* @var string the name of the input checkbox input fields. This will be appended with `[]` to ensure it is an array.
*/
public
$name
=
'selection'
;
public
$name
=
'selection'
;
/**
* @var array HTML attributes for the checkboxes.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
public
$checkboxOptions
=
[];
public
$checkboxOptions
=
[];
/**
* @var bool whether it is possible to select multiple rows. Defaults to `true`.
*/
public
$multiple
=
true
;
public
$multiple
=
true
;
/**
* @inheritdoc
* @throws \yii\base\InvalidConfigException if [[name]] is not set.
*/
public
function
init
()
public
function
init
()
{
{
parent
::
init
();
parent
::
init
();
...
...
framework/grid/Column.php
View file @
c94a40e9
...
@@ -39,15 +39,33 @@ class Column extends Object
...
@@ -39,15 +39,33 @@ class Column extends Object
* @var boolean whether this column is visible. Defaults to true.
* @var boolean whether this column is visible. Defaults to true.
*/
*/
public
$visible
=
true
;
public
$visible
=
true
;
/**
* @var array the HTML attributes for the column group tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
public
$options
=
[];
public
$options
=
[];
/**
* @var array the HTML attributes for the header cell tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
public
$headerOptions
=
[];
public
$headerOptions
=
[];
/**
/**
* @var array|\Closure
* @var array|\Closure the HTML attributes for the data cell tag. This can either be an array of
* attributes or an anonymous function that ([[Closure]]) that returns such an array.
* The signature of the function should be the following: `function ($model, $key, $index, $gridView)`.
* A function may be used to assign different attributes to different rows based on the data in that row.
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$contentOptions
=
[];
public
$contentOptions
=
[];
/**
* @var array the HTML attributes for the footer cell tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
public
$footerOptions
=
[];
public
$footerOptions
=
[];
/**
/**
* @var array the HTML attributes for the filter cell tag.
* @var array the HTML attributes for the filter cell tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$filterOptions
=
[];
public
$filterOptions
=
[];
...
...
framework/grid/DataColumn.php
View file @
c94a40e9
...
@@ -62,6 +62,7 @@ class DataColumn extends Column
...
@@ -62,6 +62,7 @@ class DataColumn extends Column
/**
/**
* @var array the HTML attributes for the link tag in the header cell
* @var array the HTML attributes for the link tag in the header cell
* generated by [[\yii\data\Sort::link]] when sorting is enabled for this column.
* generated by [[\yii\data\Sort::link]] when sorting is enabled for this column.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$sortLinkOptions
=
[];
public
$sortLinkOptions
=
[];
/**
/**
...
@@ -78,10 +79,14 @@ class DataColumn extends Column
...
@@ -78,10 +79,14 @@ class DataColumn extends Column
* @var array the HTML attributes for the filter input fields. This property is used in combination with
* @var array the HTML attributes for the filter input fields. This property is used in combination with
* the [[filter]] property. When [[filter]] is not set or is an array, this property will be used to
* the [[filter]] property. When [[filter]] is not set or is an array, this property will be used to
* render the HTML attributes for the generated filter input fields.
* render the HTML attributes for the generated filter input fields.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$filterInputOptions
=
[
'class'
=>
'form-control'
,
'id'
=>
null
];
public
$filterInputOptions
=
[
'class'
=>
'form-control'
,
'id'
=>
null
];
/**
* @inheritdoc
*/
protected
function
renderHeaderCellContent
()
protected
function
renderHeaderCellContent
()
{
{
if
(
$this
->
header
!==
null
||
$this
->
label
===
null
&&
$this
->
attribute
===
null
)
{
if
(
$this
->
header
!==
null
||
$this
->
label
===
null
&&
$this
->
attribute
===
null
)
{
...
@@ -117,6 +122,9 @@ class DataColumn extends Column
...
@@ -117,6 +122,9 @@ class DataColumn extends Column
}
}
}
}
/**
* @inheritdoc
*/
protected
function
renderFilterCellContent
()
protected
function
renderFilterCellContent
()
{
{
if
(
is_string
(
$this
->
filter
))
{
if
(
is_string
(
$this
->
filter
))
{
...
...
framework/grid/GridView.php
View file @
c94a40e9
...
@@ -41,25 +41,30 @@ class GridView extends BaseListView
...
@@ -41,25 +41,30 @@ class GridView extends BaseListView
*/
*/
public
$caption
;
public
$caption
;
/**
/**
* @var array the HTML attributes for the caption element
* @var array the HTML attributes for the caption element.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
* @see caption
* @see caption
*/
*/
public
$captionOptions
=
[];
public
$captionOptions
=
[];
/**
/**
* @var array the HTML attributes for the grid table element
* @var array the HTML attributes for the grid table element.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$tableOptions
=
[
'class'
=>
'table table-striped table-bordered'
];
public
$tableOptions
=
[
'class'
=>
'table table-striped table-bordered'
];
/**
/**
* @var array the HTML attributes for the container tag of the grid view.
* @var array the HTML attributes for the container tag of the grid view.
* The "tag" element specifies the tag name of the container element and defaults to "div".
* The "tag" element specifies the tag name of the container element and defaults to "div".
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[
'class'
=>
'grid-view'
];
public
$options
=
[
'class'
=>
'grid-view'
];
/**
/**
* @var array the HTML attributes for the table header row
* @var array the HTML attributes for the table header row.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$headerRowOptions
=
[];
public
$headerRowOptions
=
[];
/**
/**
* @var array the HTML attributes for the table footer row
* @var array the HTML attributes for the table footer row.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$footerRowOptions
=
[];
public
$footerRowOptions
=
[];
/**
/**
...
@@ -76,6 +81,8 @@ class GridView extends BaseListView
...
@@ -76,6 +81,8 @@ class GridView extends BaseListView
* - `$key`: the key value associated with the current data model
* - `$key`: the key value associated with the current data model
* - `$index`: the zero-based index of the data model in the model array returned by [[dataProvider]]
* - `$index`: the zero-based index of the data model in the model array returned by [[dataProvider]]
* - `$grid`: the GridView object
* - `$grid`: the GridView object
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$rowOptions
=
[];
public
$rowOptions
=
[];
/**
/**
...
@@ -162,10 +169,12 @@ class GridView extends BaseListView
...
@@ -162,10 +169,12 @@ class GridView extends BaseListView
*/
*/
public
$filterPosition
=
self
::
FILTER_POS_BODY
;
public
$filterPosition
=
self
::
FILTER_POS_BODY
;
/**
/**
* @var array the HTML attributes for the filter row element
* @var array the HTML attributes for the filter row element.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$filterRowOptions
=
[
'class'
=>
'filters'
];
public
$filterRowOptions
=
[
'class'
=>
'filters'
];
/**
/**
* Initializes the grid view.
* Initializes the grid view.
* This method will initialize required property values and instantiate [[columns]] objects.
* This method will initialize required property values and instantiate [[columns]] objects.
...
@@ -204,7 +213,6 @@ class GridView extends BaseListView
...
@@ -204,7 +213,6 @@ class GridView extends BaseListView
parent
::
run
();
parent
::
run
();
}
}
/**
/**
* Returns the options for the grid view JS widget.
* Returns the options for the grid view JS widget.
* @return array the options
* @return array the options
...
@@ -239,6 +247,10 @@ class GridView extends BaseListView
...
@@ -239,6 +247,10 @@ class GridView extends BaseListView
return
Html
::
tag
(
'table'
,
implode
(
"
\n
"
,
$content
),
$this
->
tableOptions
);
return
Html
::
tag
(
'table'
,
implode
(
"
\n
"
,
$content
),
$this
->
tableOptions
);
}
}
/**
* Renders the caption element.
* @return bool|string the rendered caption element or `false` if no caption element should be rendered.
*/
public
function
renderCaption
()
public
function
renderCaption
()
{
{
if
(
!
empty
(
$this
->
caption
))
{
if
(
!
empty
(
$this
->
caption
))
{
...
@@ -248,6 +260,10 @@ class GridView extends BaseListView
...
@@ -248,6 +260,10 @@ class GridView extends BaseListView
}
}
}
}
/**
* Renders the column group HTML.
* @return bool|string the column group HTML or `false` if no column group should be rendered.
*/
public
function
renderColumnGroup
()
public
function
renderColumnGroup
()
{
{
$requireColumnGroup
=
false
;
$requireColumnGroup
=
false
;
...
@@ -271,7 +287,7 @@ class GridView extends BaseListView
...
@@ -271,7 +287,7 @@ class GridView extends BaseListView
/**
/**
* Renders the table header.
* Renders the table header.
* @return string the rendering result
* @return string the rendering result
.
*/
*/
public
function
renderTableHeader
()
public
function
renderTableHeader
()
{
{
...
@@ -292,7 +308,7 @@ class GridView extends BaseListView
...
@@ -292,7 +308,7 @@ class GridView extends BaseListView
/**
/**
* Renders the table footer.
* Renders the table footer.
* @return string the rendering result
* @return string the rendering result
.
*/
*/
public
function
renderTableFooter
()
public
function
renderTableFooter
()
{
{
...
@@ -310,6 +326,7 @@ class GridView extends BaseListView
...
@@ -310,6 +326,7 @@ class GridView extends BaseListView
/**
/**
* Renders the filter.
* Renders the filter.
* @return string the rendering result.
*/
*/
public
function
renderFilters
()
public
function
renderFilters
()
{
{
...
@@ -327,7 +344,7 @@ class GridView extends BaseListView
...
@@ -327,7 +344,7 @@ class GridView extends BaseListView
/**
/**
* Renders the table body.
* Renders the table body.
* @return string the rendering result
* @return string the rendering result
.
*/
*/
public
function
renderTableBody
()
public
function
renderTableBody
()
{
{
...
@@ -429,6 +446,10 @@ class GridView extends BaseListView
...
@@ -429,6 +446,10 @@ class GridView extends BaseListView
]);
]);
}
}
/**
* This function tries to guesses the columns to show from the given data
* if [[columns]] are not explicitly specified.
*/
protected
function
guessColumns
()
protected
function
guessColumns
()
{
{
$models
=
$this
->
dataProvider
->
getModels
();
$models
=
$this
->
dataProvider
->
getModels
();
...
...
framework/helpers/BaseHtml.php
View file @
c94a40e9
...
@@ -120,7 +120,7 @@ class BaseHtml
...
@@ -120,7 +120,7 @@ class BaseHtml
* For example when using `['class' => 'my-class', 'target' => '_blank', 'value' => null]` it will result in the
* For example when using `['class' => 'my-class', 'target' => '_blank', 'value' => null]` it will result in the
* html attributes rendered like this: `class="my-class" target="_blank"`.
* html attributes rendered like this: `class="my-class" target="_blank"`.
*
*
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated HTML tag
* @return string the generated HTML tag
* @see beginTag()
* @see beginTag()
...
@@ -138,7 +138,7 @@ class BaseHtml
...
@@ -138,7 +138,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated start tag
* @return string the generated start tag
* @see endTag()
* @see endTag()
* @see tag()
* @see tag()
...
@@ -167,7 +167,7 @@ class BaseHtml
...
@@ -167,7 +167,7 @@ class BaseHtml
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* If the options does not contain "type", a "type" attribute with value "text/css" will be used.
* If the options does not contain "type", a "type" attribute with value "text/css" will be used.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated style tag
* @return string the generated style tag
*/
*/
public
static
function
style
(
$content
,
$options
=
[])
public
static
function
style
(
$content
,
$options
=
[])
...
@@ -182,7 +182,7 @@ class BaseHtml
...
@@ -182,7 +182,7 @@ class BaseHtml
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* If the options does not contain "type", a "type" attribute with value "text/javascript" will be rendered.
* If the options does not contain "type", a "type" attribute with value "text/javascript" will be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated script tag
* @return string the generated script tag
*/
*/
public
static
function
script
(
$content
,
$options
=
[])
public
static
function
script
(
$content
,
$options
=
[])
...
@@ -196,7 +196,7 @@ class BaseHtml
...
@@ -196,7 +196,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated link tag
* @return string the generated link tag
* @see url()
* @see url()
*/
*/
...
@@ -215,7 +215,7 @@ class BaseHtml
...
@@ -215,7 +215,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated script tag
* @return string the generated script tag
* @see url()
* @see url()
*/
*/
...
@@ -235,7 +235,7 @@ class BaseHtml
...
@@ -235,7 +235,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated form start tag.
* @return string the generated form start tag.
* @see endForm()
* @see endForm()
*/
*/
...
@@ -304,7 +304,7 @@ class BaseHtml
...
@@ -304,7 +304,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated hyperlink
* @return string the generated hyperlink
* @see url()
* @see url()
*/
*/
...
@@ -326,7 +326,7 @@ class BaseHtml
...
@@ -326,7 +326,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated mailto link
* @return string the generated mailto link
*/
*/
public
static
function
mailto
(
$text
,
$email
=
null
,
$options
=
[])
public
static
function
mailto
(
$text
,
$email
=
null
,
$options
=
[])
...
@@ -341,7 +341,7 @@ class BaseHtml
...
@@ -341,7 +341,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated image tag
* @return string the generated image tag
*/
*/
public
static
function
img
(
$src
,
$options
=
[])
public
static
function
img
(
$src
,
$options
=
[])
...
@@ -363,7 +363,7 @@ class BaseHtml
...
@@ -363,7 +363,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated label tag
* @return string the generated label tag
*/
*/
public
static
function
label
(
$content
,
$for
=
null
,
$options
=
[])
public
static
function
label
(
$content
,
$for
=
null
,
$options
=
[])
...
@@ -380,7 +380,7 @@ class BaseHtml
...
@@ -380,7 +380,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated button tag
* @return string the generated button tag
*/
*/
public
static
function
button
(
$content
=
'Button'
,
$options
=
[])
public
static
function
button
(
$content
=
'Button'
,
$options
=
[])
...
@@ -396,7 +396,7 @@ class BaseHtml
...
@@ -396,7 +396,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated submit button tag
* @return string the generated submit button tag
*/
*/
public
static
function
submitButton
(
$content
=
'Submit'
,
$options
=
[])
public
static
function
submitButton
(
$content
=
'Submit'
,
$options
=
[])
...
@@ -413,7 +413,7 @@ class BaseHtml
...
@@ -413,7 +413,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated reset button tag
* @return string the generated reset button tag
*/
*/
public
static
function
resetButton
(
$content
=
'Reset'
,
$options
=
[])
public
static
function
resetButton
(
$content
=
'Reset'
,
$options
=
[])
...
@@ -430,7 +430,7 @@ class BaseHtml
...
@@ -430,7 +430,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated input tag
* @return string the generated input tag
*/
*/
public
static
function
input
(
$type
,
$name
=
null
,
$value
=
null
,
$options
=
[])
public
static
function
input
(
$type
,
$name
=
null
,
$value
=
null
,
$options
=
[])
...
@@ -447,7 +447,7 @@ class BaseHtml
...
@@ -447,7 +447,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated button tag
* @return string the generated button tag
*/
*/
public
static
function
buttonInput
(
$label
=
'Button'
,
$options
=
[])
public
static
function
buttonInput
(
$label
=
'Button'
,
$options
=
[])
...
@@ -463,7 +463,7 @@ class BaseHtml
...
@@ -463,7 +463,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated button tag
* @return string the generated button tag
*/
*/
public
static
function
submitInput
(
$label
=
'Submit'
,
$options
=
[])
public
static
function
submitInput
(
$label
=
'Submit'
,
$options
=
[])
...
@@ -478,7 +478,7 @@ class BaseHtml
...
@@ -478,7 +478,7 @@ class BaseHtml
* @param string $label the value attribute. If it is null, the value attribute will not be generated.
* @param string $label the value attribute. If it is null, the value attribute will not be generated.
* @param array $options the attributes of the button tag. The values will be HTML-encoded using [[encode()]].
* @param array $options the attributes of the button tag. The values will be HTML-encoded using [[encode()]].
* Attributes whose value is null will be ignored and not put in the tag returned.
* Attributes whose value is null will be ignored and not put in the tag returned.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated button tag
* @return string the generated button tag
*/
*/
public
static
function
resetInput
(
$label
=
'Reset'
,
$options
=
[])
public
static
function
resetInput
(
$label
=
'Reset'
,
$options
=
[])
...
@@ -495,7 +495,7 @@ class BaseHtml
...
@@ -495,7 +495,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated button tag
* @return string the generated button tag
*/
*/
public
static
function
textInput
(
$name
,
$value
=
null
,
$options
=
[])
public
static
function
textInput
(
$name
,
$value
=
null
,
$options
=
[])
...
@@ -510,7 +510,7 @@ class BaseHtml
...
@@ -510,7 +510,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated button tag
* @return string the generated button tag
*/
*/
public
static
function
hiddenInput
(
$name
,
$value
=
null
,
$options
=
[])
public
static
function
hiddenInput
(
$name
,
$value
=
null
,
$options
=
[])
...
@@ -525,7 +525,7 @@ class BaseHtml
...
@@ -525,7 +525,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated button tag
* @return string the generated button tag
*/
*/
public
static
function
passwordInput
(
$name
,
$value
=
null
,
$options
=
[])
public
static
function
passwordInput
(
$name
,
$value
=
null
,
$options
=
[])
...
@@ -543,7 +543,7 @@ class BaseHtml
...
@@ -543,7 +543,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated button tag
* @return string the generated button tag
*/
*/
public
static
function
fileInput
(
$name
,
$value
=
null
,
$options
=
[])
public
static
function
fileInput
(
$name
,
$value
=
null
,
$options
=
[])
...
@@ -558,7 +558,7 @@ class BaseHtml
...
@@ -558,7 +558,7 @@ class BaseHtml
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
* If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated text area tag
* @return string the generated text area tag
*/
*/
public
static
function
textarea
(
$name
,
$value
=
''
,
$options
=
[])
public
static
function
textarea
(
$name
,
$value
=
''
,
$options
=
[])
...
@@ -586,7 +586,7 @@ class BaseHtml
...
@@ -586,7 +586,7 @@ class BaseHtml
*
*
* The rest of the options will be rendered as the attributes of the resulting radio button tag. The values will
* The rest of the options will be rendered as the attributes of the resulting radio button tag. The values will
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated radio button tag
* @return string the generated radio button tag
*/
*/
...
@@ -636,7 +636,7 @@ class BaseHtml
...
@@ -636,7 +636,7 @@ class BaseHtml
*
*
* The rest of the options will be rendered as the attributes of the resulting checkbox tag. The values will
* The rest of the options will be rendered as the attributes of the resulting checkbox tag. The values will
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated checkbox tag
* @return string the generated checkbox tag
*/
*/
...
@@ -697,7 +697,7 @@ class BaseHtml
...
@@ -697,7 +697,7 @@ class BaseHtml
*
*
* The rest of the options will be rendered as the attributes of the resulting tag. The values will
* The rest of the options will be rendered as the attributes of the resulting tag. The values will
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated drop-down list tag
* @return string the generated drop-down list tag
*/
*/
...
@@ -744,7 +744,7 @@ class BaseHtml
...
@@ -744,7 +744,7 @@ class BaseHtml
*
*
* The rest of the options will be rendered as the attributes of the resulting tag. The values will
* The rest of the options will be rendered as the attributes of the resulting tag. The values will
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated list box tag
* @return string the generated list box tag
*/
*/
...
@@ -800,7 +800,7 @@ class BaseHtml
...
@@ -800,7 +800,7 @@ class BaseHtml
* is the label for the checkbox; and $name, $value and $checked represent the name,
* is the label for the checkbox; and $name, $value and $checked represent the name,
* value and the checked status of the checkbox input, respectively.
* value and the checked status of the checkbox input, respectively.
*
*
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated checkbox list
* @return string the generated checkbox list
*/
*/
...
@@ -871,7 +871,7 @@ class BaseHtml
...
@@ -871,7 +871,7 @@ class BaseHtml
* is the label for the radio button; and $name, $value and $checked represent the name,
* is the label for the radio button; and $name, $value and $checked represent the name,
* value and the checked status of the radio button input, respectively.
* value and the checked status of the radio button input, respectively.
*
*
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated radio button list
* @return string the generated radio button list
*/
*/
...
@@ -930,7 +930,7 @@ class BaseHtml
...
@@ -930,7 +930,7 @@ class BaseHtml
* where $index is the array key corresponding to `$item` in `$items`. The callback should return
* where $index is the array key corresponding to `$item` in `$items`. The callback should return
* the whole list item tag.
* the whole list item tag.
*
*
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated unordered list. An empty string is returned if `$items` is empty.
* @return string the generated unordered list. An empty string is returned if `$items` is empty.
*/
*/
...
@@ -974,7 +974,7 @@ class BaseHtml
...
@@ -974,7 +974,7 @@ class BaseHtml
* where $index is the array key corresponding to `$item` in `$items`. The callback should return
* where $index is the array key corresponding to `$item` in `$items`. The callback should return
* the whole list item tag.
* the whole list item tag.
*
*
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated ordered list. An empty string is returned if `$items` is empty.
* @return string the generated ordered list. An empty string is returned if `$items` is empty.
*/
*/
...
@@ -999,7 +999,7 @@ class BaseHtml
...
@@ -999,7 +999,7 @@ class BaseHtml
* If this is not set, [[Model::getAttributeLabel()]] will be called to get the label for display
* If this is not set, [[Model::getAttributeLabel()]] will be called to get the label for display
* (after encoding).
* (after encoding).
*
*
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated label tag
* @return string the generated label tag
*/
*/
...
@@ -1025,7 +1025,7 @@ class BaseHtml
...
@@ -1025,7 +1025,7 @@ class BaseHtml
*
*
* - tag: this specifies the tag name. If not set, "div" will be used.
* - tag: this specifies the tag name. If not set, "div" will be used.
*
*
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated label tag
* @return string the generated label tag
*/
*/
...
@@ -1048,7 +1048,7 @@ class BaseHtml
...
@@ -1048,7 +1048,7 @@ class BaseHtml
* about attribute expression.
* about attribute expression.
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated input tag
* @return string the generated input tag
*/
*/
public
static
function
activeInput
(
$type
,
$model
,
$attribute
,
$options
=
[])
public
static
function
activeInput
(
$type
,
$model
,
$attribute
,
$options
=
[])
...
@@ -1070,7 +1070,7 @@ class BaseHtml
...
@@ -1070,7 +1070,7 @@ class BaseHtml
* about attribute expression.
* about attribute expression.
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated input tag
* @return string the generated input tag
*/
*/
public
static
function
activeTextInput
(
$model
,
$attribute
,
$options
=
[])
public
static
function
activeTextInput
(
$model
,
$attribute
,
$options
=
[])
...
@@ -1087,7 +1087,7 @@ class BaseHtml
...
@@ -1087,7 +1087,7 @@ class BaseHtml
* about attribute expression.
* about attribute expression.
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated input tag
* @return string the generated input tag
*/
*/
public
static
function
activeHiddenInput
(
$model
,
$attribute
,
$options
=
[])
public
static
function
activeHiddenInput
(
$model
,
$attribute
,
$options
=
[])
...
@@ -1104,7 +1104,7 @@ class BaseHtml
...
@@ -1104,7 +1104,7 @@ class BaseHtml
* about attribute expression.
* about attribute expression.
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated input tag
* @return string the generated input tag
*/
*/
public
static
function
activePasswordInput
(
$model
,
$attribute
,
$options
=
[])
public
static
function
activePasswordInput
(
$model
,
$attribute
,
$options
=
[])
...
@@ -1121,7 +1121,7 @@ class BaseHtml
...
@@ -1121,7 +1121,7 @@ class BaseHtml
* about attribute expression.
* about attribute expression.
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated input tag
* @return string the generated input tag
*/
*/
public
static
function
activeFileInput
(
$model
,
$attribute
,
$options
=
[])
public
static
function
activeFileInput
(
$model
,
$attribute
,
$options
=
[])
...
@@ -1140,7 +1140,7 @@ class BaseHtml
...
@@ -1140,7 +1140,7 @@ class BaseHtml
* about attribute expression.
* about attribute expression.
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
* @return string the generated textarea tag
* @return string the generated textarea tag
*/
*/
public
static
function
activeTextarea
(
$model
,
$attribute
,
$options
=
[])
public
static
function
activeTextarea
(
$model
,
$attribute
,
$options
=
[])
...
@@ -1173,7 +1173,7 @@ class BaseHtml
...
@@ -1173,7 +1173,7 @@ class BaseHtml
* The rest of the options will be rendered as the attributes of the resulting tag. The values will
* The rest of the options will be rendered as the attributes of the resulting tag. The values will
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
*
*
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated radio button tag
* @return string the generated radio button tag
*/
*/
...
@@ -1216,7 +1216,7 @@ class BaseHtml
...
@@ -1216,7 +1216,7 @@ class BaseHtml
*
*
* The rest of the options will be rendered as the attributes of the resulting tag. The values will
* The rest of the options will be rendered as the attributes of the resulting tag. The values will
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated checkbox tag
* @return string the generated checkbox tag
*/
*/
...
@@ -1272,7 +1272,7 @@ class BaseHtml
...
@@ -1272,7 +1272,7 @@ class BaseHtml
*
*
* The rest of the options will be rendered as the attributes of the resulting tag. The values will
* The rest of the options will be rendered as the attributes of the resulting tag. The values will
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated drop-down list tag
* @return string the generated drop-down list tag
*/
*/
...
@@ -1324,7 +1324,7 @@ class BaseHtml
...
@@ -1324,7 +1324,7 @@ class BaseHtml
*
*
* The rest of the options will be rendered as the attributes of the resulting tag. The values will
* The rest of the options will be rendered as the attributes of the resulting tag. The values will
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
* be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated list box tag
* @return string the generated list box tag
*/
*/
...
@@ -1369,7 +1369,7 @@ class BaseHtml
...
@@ -1369,7 +1369,7 @@ class BaseHtml
* is the label for the checkbox; and $name, $value and $checked represent the name,
* is the label for the checkbox; and $name, $value and $checked represent the name,
* value and the checked status of the checkbox input.
* value and the checked status of the checkbox input.
*
*
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated checkbox list
* @return string the generated checkbox list
*/
*/
...
@@ -1413,7 +1413,7 @@ class BaseHtml
...
@@ -1413,7 +1413,7 @@ class BaseHtml
* is the label for the radio button; and $name, $value and $checked represent the name,
* is the label for the radio button; and $name, $value and $checked represent the name,
* value and the checked status of the radio button input.
* value and the checked status of the radio button input.
*
*
* See [[renderTagAttributes()]] for details on how
these
are being rendered.
* See [[renderTagAttributes()]] for details on how
attributes
are being rendered.
*
*
* @return string the generated radio button list
* @return string the generated radio button list
*/
*/
...
@@ -1488,6 +1488,8 @@ class BaseHtml
...
@@ -1488,6 +1488,8 @@ class BaseHtml
*
*
* Attributes whose values are null will not be rendered.
* Attributes whose values are null will not be rendered.
*
*
* The values of attributes will be HTML-encoded using [[encode()]].
*
* The "data" attribute is specially handled when it is receiving an array value. In this case,
* The "data" attribute is specially handled when it is receiving an array value. In this case,
* the array will be "expanded" and a list data attributes will be rendered. For example,
* the array will be "expanded" and a list data attributes will be rendered. For example,
* if `'data' => ['id' => 1, 'name' => 'yii']`, then this will be rendered:
* if `'data' => ['id' => 1, 'name' => 'yii']`, then this will be rendered:
...
...
framework/widgets/ActiveField.php
View file @
c94a40e9
...
@@ -40,6 +40,8 @@ class ActiveField extends Component
...
@@ -40,6 +40,8 @@ class ActiveField extends Component
* The following special options are recognized:
* The following special options are recognized:
*
*
* - tag: the tag name of the container element. Defaults to "div".
* - tag: the tag name of the container element. Defaults to "div".
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[
'class'
=>
'form-group'
];
public
$options
=
[
'class'
=>
'form-group'
];
/**
/**
...
@@ -50,6 +52,7 @@ class ActiveField extends Component
...
@@ -50,6 +52,7 @@ class ActiveField extends Component
/**
/**
* @var array the default options for the input tags. The parameter passed to individual input methods
* @var array the default options for the input tags. The parameter passed to individual input methods
* (e.g. [[textInput()]]) will be merged with this property when rendering the input tag.
* (e.g. [[textInput()]]) will be merged with this property when rendering the input tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$inputOptions
=
[
'class'
=>
'form-control'
];
public
$inputOptions
=
[
'class'
=>
'form-control'
];
/**
/**
...
@@ -58,11 +61,14 @@ class ActiveField extends Component
...
@@ -58,11 +61,14 @@ class ActiveField extends Component
* The following special options are recognized:
* The following special options are recognized:
*
*
* - tag: the tag name of the container element. Defaults to "div".
* - tag: the tag name of the container element. Defaults to "div".
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$errorOptions
=
[
'class'
=>
'help-block'
];
public
$errorOptions
=
[
'class'
=>
'help-block'
];
/**
/**
* @var array the default options for the label tags. The parameter passed to [[label()]] will be
* @var array the default options for the label tags. The parameter passed to [[label()]] will be
* merged with this property when rendering the label tag.
* merged with this property when rendering the label tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$labelOptions
=
[
'class'
=>
'control-label'
];
public
$labelOptions
=
[
'class'
=>
'control-label'
];
/**
/**
...
@@ -71,6 +77,8 @@ class ActiveField extends Component
...
@@ -71,6 +77,8 @@ class ActiveField extends Component
* The following special options are recognized:
* The following special options are recognized:
*
*
* - tag: the tag name of the container element. Defaults to "div".
* - tag: the tag name of the container element. Defaults to "div".
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$hintOptions
=
[
'class'
=>
'hint-block'
];
public
$hintOptions
=
[
'class'
=>
'hint-block'
];
/**
/**
...
...
framework/widgets/ActiveForm.php
View file @
c94a40e9
...
@@ -34,8 +34,7 @@ class ActiveForm extends Widget
...
@@ -34,8 +34,7 @@ class ActiveForm extends Widget
public
$method
=
'post'
;
public
$method
=
'post'
;
/**
/**
* @var array the HTML attributes (name-value pairs) for the form tag.
* @var array the HTML attributes (name-value pairs) for the form tag.
* The values will be HTML-encoded using [[\yii\helpers\Html::encode()]].
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
* If a value is null, the corresponding attribute will not be rendered.
*/
*/
public
$options
=
[];
public
$options
=
[];
/**
/**
...
...
framework/widgets/BaseListView.php
View file @
c94a40e9
...
@@ -22,6 +22,7 @@ abstract class BaseListView extends Widget
...
@@ -22,6 +22,7 @@ abstract class BaseListView extends Widget
/**
/**
* @var array the HTML attributes for the container tag of the list view.
* @var array the HTML attributes for the container tag of the list view.
* The "tag" element specifies the tag name of the container element and defaults to "div".
* The "tag" element specifies the tag name of the container element and defaults to "div".
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[];
public
$options
=
[];
/**
/**
...
...
framework/widgets/Breadcrumbs.php
View file @
c94a40e9
...
@@ -53,6 +53,7 @@ class Breadcrumbs extends Widget
...
@@ -53,6 +53,7 @@ class Breadcrumbs extends Widget
public
$tag
=
'ul'
;
public
$tag
=
'ul'
;
/**
/**
* @var array the HTML attributes for the breadcrumb container tag.
* @var array the HTML attributes for the breadcrumb container tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[
'class'
=>
'breadcrumb'
];
public
$options
=
[
'class'
=>
'breadcrumb'
];
/**
/**
...
...
framework/widgets/DetailView.php
View file @
c94a40e9
...
@@ -91,6 +91,7 @@ class DetailView extends Widget
...
@@ -91,6 +91,7 @@ class DetailView extends Widget
/**
/**
* @var array the HTML attributes for the container tag of this widget. The "tag" option specifies
* @var array the HTML attributes for the container tag of this widget. The "tag" option specifies
* what container tag should be used. It defaults to "table" if not set.
* what container tag should be used. It defaults to "table" if not set.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[
'class'
=>
'table table-striped table-bordered detail-view'
];
public
$options
=
[
'class'
=>
'table table-striped table-bordered detail-view'
];
/**
/**
...
@@ -100,6 +101,7 @@ class DetailView extends Widget
...
@@ -100,6 +101,7 @@ class DetailView extends Widget
*/
*/
public
$formatter
;
public
$formatter
;
/**
/**
* Initializes the detail view.
* Initializes the detail view.
* This method will initialize required property values.
* This method will initialize required property values.
...
...
framework/widgets/InputWidget.php
View file @
c94a40e9
...
@@ -43,6 +43,7 @@ class InputWidget extends Widget
...
@@ -43,6 +43,7 @@ class InputWidget extends Widget
public
$value
;
public
$value
;
/**
/**
* @var array the HTML attributes for the input tag.
* @var array the HTML attributes for the input tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[];
public
$options
=
[];
...
...
framework/widgets/LinkPager.php
View file @
c94a40e9
...
@@ -35,10 +35,12 @@ class LinkPager extends Widget
...
@@ -35,10 +35,12 @@ class LinkPager extends Widget
public
$pagination
;
public
$pagination
;
/**
/**
* @var array HTML attributes for the pager container tag.
* @var array HTML attributes for the pager container tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[
'class'
=>
'pagination'
];
public
$options
=
[
'class'
=>
'pagination'
];
/**
/**
* @var array HTML attributes for the link in a pager container tag.
* @var array HTML attributes for the link in a pager container tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$linkOptions
=
[];
public
$linkOptions
=
[];
/**
/**
...
...
framework/widgets/LinkSorter.php
View file @
c94a40e9
...
@@ -34,7 +34,8 @@ class LinkSorter extends Widget
...
@@ -34,7 +34,8 @@ class LinkSorter extends Widget
public
$attributes
;
public
$attributes
;
/**
/**
* @var array HTML attributes for the sorter container tag.
* @var array HTML attributes for the sorter container tag.
* See [[\yii\helpers\Html::ul()]] for special attributes.
* @see \yii\helpers\Html::ul() for special attributes.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[
'class'
=>
'sorter'
];
public
$options
=
[
'class'
=>
'sorter'
];
...
...
framework/widgets/ListView.php
View file @
c94a40e9
...
@@ -22,6 +22,7 @@ class ListView extends BaseListView
...
@@ -22,6 +22,7 @@ class ListView extends BaseListView
* @var array the HTML attributes for the container of the rendering result of each data model.
* @var array the HTML attributes for the container of the rendering result of each data model.
* The "tag" element specifies the tag name of the container element and defaults to "div".
* The "tag" element specifies the tag name of the container element and defaults to "div".
* If "tag" is false, it means no container element will be rendered.
* If "tag" is false, it means no container element will be rendered.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$itemOptions
=
[];
public
$itemOptions
=
[];
/**
/**
...
@@ -55,6 +56,7 @@ class ListView extends BaseListView
...
@@ -55,6 +56,7 @@ class ListView extends BaseListView
/**
/**
* @var array the HTML attributes for the container tag of the list view.
* @var array the HTML attributes for the container tag of the list view.
* The "tag" element specifies the tag name of the container element and defaults to "div".
* The "tag" element specifies the tag name of the container element and defaults to "div".
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[
'class'
=>
'list-view'
];
public
$options
=
[
'class'
=>
'list-view'
];
...
...
framework/widgets/MaskedInput.php
View file @
c94a40e9
...
@@ -63,6 +63,7 @@ class MaskedInput extends InputWidget
...
@@ -63,6 +63,7 @@ class MaskedInput extends InputWidget
public
$completed
;
public
$completed
;
/**
/**
* @var array the HTML attributes for the input tag.
* @var array the HTML attributes for the input tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[
'class'
=>
'form-control'
];
public
$options
=
[
'class'
=>
'form-control'
];
...
...
framework/widgets/Menu.php
View file @
c94a40e9
...
@@ -74,6 +74,8 @@ class Menu extends Widget
...
@@ -74,6 +74,8 @@ class Menu extends Widget
* by the "options" set in individual [[items]]. The following special options are recognized:
* by the "options" set in individual [[items]]. The following special options are recognized:
*
*
* - tag: string, defaults to "li", the tag name of the item container tags.
* - tag: string, defaults to "li", the tag name of the item container tags.
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$itemOptions
=
[];
public
$itemOptions
=
[];
/**
/**
...
@@ -122,6 +124,8 @@ class Menu extends Widget
...
@@ -122,6 +124,8 @@ class Menu extends Widget
* @var array the HTML attributes for the menu's container tag. The following special options are recognized:
* @var array the HTML attributes for the menu's container tag. The following special options are recognized:
*
*
* - tag: string, defaults to "ul", the tag name of the item container tags.
* - tag: string, defaults to "ul", the tag name of the item container tags.
*
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[];
public
$options
=
[];
/**
/**
...
...
framework/widgets/Pjax.php
View file @
c94a40e9
...
@@ -45,6 +45,7 @@ class Pjax extends Widget
...
@@ -45,6 +45,7 @@ class Pjax extends Widget
{
{
/**
/**
* @var array the HTML attributes for the widget container tag.
* @var array the HTML attributes for the widget container tag.
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
*/
*/
public
$options
=
[];
public
$options
=
[];
/**
/**
...
@@ -79,7 +80,7 @@ class Pjax extends Widget
...
@@ -79,7 +80,7 @@ class Pjax extends Widget
*/
*/
public
$scrollTo
=
false
;
public
$scrollTo
=
false
;
/**
/**
* @var array additional options to be passed to the pjax JS plugin. Please refer to
* @var array additional options to be passed to the pjax JS plugin. Please refer to
the
* [pjax project page](https://github.com/yiisoft/jquery-pjax) for available options.
* [pjax project page](https://github.com/yiisoft/jquery-pjax) for available options.
*/
*/
public
$clientOptions
;
public
$clientOptions
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment