Commit 8582f46d by Alexander Kochetov

Example from comments changed

parent 64596976
...@@ -25,11 +25,27 @@ use yii\helpers\Html; ...@@ -25,11 +25,27 @@ use yii\helpers\Html;
* ), * ),
* array( * array(
* 'header' => 'Section 2', * 'header' => 'Section 2',
* 'headerOptions' => array(...), * 'headerOptions' => array(
* 'tag' => 'h3',
* ),
* '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',
* ),
* ), * ),
* ), * ),
* 'options' => array(
* 'tag' => 'div',
* ),
* 'itemOptions' => array(
* 'tag' => 'div',
* ),
* 'headerOptions' => array(
* 'tag' => 'h3',
* ),
* 'clientOptions' => array(
* 'collapsible' => false,
* ),
* )); * ));
* ``` * ```
* *
...@@ -40,18 +56,15 @@ use yii\helpers\Html; ...@@ -40,18 +56,15 @@ use yii\helpers\Html;
class Accordion extends Widget class Accordion extends Widget
{ {
/** /**
* @var array. * @var array list of collapsible sections.
* @todo comments.
*/ */
public $items = array(); public $items = array();
/** /**
* @var array. * @var array list of individual collabsible section default options.
* @todo comments.
*/ */
public $itemOptions = array(); public $itemOptions = array();
/** /**
* @var array. * @var array list of individual collabsible section header default options.
* @todo comments.
*/ */
public $headerOptions = array(); public $headerOptions = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment