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
73900b4b
Commit
73900b4b
authored
May 26, 2013
by
Alexander Kochetov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jQuery UI tabs rework
parent
39c21075
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
Tabs.php
framework/yii/jui/Tabs.php
+15
-9
No files found.
framework/yii/jui/Tabs.php
View file @
73900b4b
...
@@ -20,19 +20,27 @@ use yii\helpers\Html;
...
@@ -20,19 +20,27 @@ use yii\helpers\Html;
* echo Tabs::widget(array(
* echo Tabs::widget(array(
* 'items' => array(
* 'items' => array(
* array(
* array(
* '
header
' => 'Tab one',
* '
label
' => 'Tab one',
* 'content' => 'Mauris mauris ante, blandit et, ultrices a, suscipit eget...',
* 'content' => 'Mauris mauris ante, blandit et, ultrices a, suscipit eget...',
* ),
* ),
* array(
* array(
* 'header' => 'Tab two',
* 'label' => 'Tab two',
* 'headerOptions' => array(
* 'tag' => 'li',
* ),
* 'content' => 'Sed non urna. Phasellus eu ligula. Vestibulum sit amet purus...',
* 'content' => 'Sed non urna. Phasellus eu ligula. Vestibulum sit amet purus...',
* 'options' => array(
* 'options' => array(
* 'tag' => 'div',
* 'tag' => 'div',
* ),
* ),
* ),
* ),
* array(
* 'label' => 'Tab three',
* 'content' => 'Specific content...',
* 'options' => array(
* 'id' => 'my-tab',
* ),
* ),
* array(
* 'label' => 'Ajax tab',
* 'url' => 'http://www.yiiframework.com',
* ),
* ),
* ),
* 'options' => array(
* 'options' => array(
* 'tag' => 'div',
* 'tag' => 'div',
...
@@ -40,9 +48,6 @@ use yii\helpers\Html;
...
@@ -40,9 +48,6 @@ use yii\helpers\Html;
* 'itemOptions' => array(
* 'itemOptions' => array(
* 'tag' => 'div',
* 'tag' => 'div',
* ),
* ),
* 'headerOptions' => array(
* 'tag' => 'li',
* ),
* 'clientOptions' => array(
* 'clientOptions' => array(
* 'collapsible' => false,
* 'collapsible' => false,
* ),
* ),
...
@@ -58,7 +63,7 @@ class Tabs extends Widget
...
@@ -58,7 +63,7 @@ class Tabs extends Widget
public
$options
=
array
();
public
$options
=
array
();
public
$items
=
array
();
public
$items
=
array
();
public
$itemOptions
=
array
();
public
$itemOptions
=
array
();
public
$header
Options
=
array
()
;
public
$header
Template
=
'<li><a href="{url}">{label}</a></li>'
;
/**
/**
...
@@ -76,6 +81,7 @@ class Tabs extends Widget
...
@@ -76,6 +81,7 @@ class Tabs extends Widget
* Renders tab items as specified on [[items]].
* Renders tab items as specified on [[items]].
* @return string the rendering result.
* @return string the rendering result.
* @throws InvalidConfigException.
* @throws InvalidConfigException.
* @todo rework
*/
*/
protected
function
renderItems
()
protected
function
renderItems
()
{
{
...
...
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