yii2-jui icon indicating copy to clipboard operation
yii2-jui copied to clipboard

Request to include an option to specify template or class for the ul tag in the tabs widget

Open SSRico opened this issue 7 years ago • 2 comments

When I'm using the Tabs widget, I'm able to specify a css class by using: options, itemOptions, headerOptions and clientOptions properties but none of these set a class to the ul tag.

echo Tabs::widget([
        'items' => [
            [
                'label' => 'Tab one',
                'content' => 'Mauris mauris ante, blandit et, ultrices a, suscipit eget...',
            ],
        ],
        'options' => ['tag' => 'div','class' => 'class_a'],  #Applied on DIV tag
        'itemOptions' => ['tag' => 'div','class' => 'class_b'], #Applied on DIV tag (content for each LI tag)
        'headerOptions' => ['class' => 'class_c'], #Applied on LI tag
        'clientOptions' => ['collapsible' => false],

        'class' =>  'CUSTOM_UL_CLASS'  #This would allow me to set a custom UL class
    ]);

Is there a way to set a custom class in the UL tag? otherwise could you include this option on your code?

SSRico avatar Sep 21 '17 20:09 SSRico

I see the status has been changed to ready for adoption, when would it be applied? I would like to keep my code simpler by using the widget 👍

SSRico avatar Sep 28 '17 20:09 SSRico

When someone will properly pull request it. It's not a priority currently so could be in waiting state for significant period.

samdark avatar Sep 29 '17 13:09 samdark