Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SSRico opened this issue Sep 21, 2017 · 2 comments
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement

Comments

@SSRico
Copy link

SSRico commented Sep 21, 2017

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?

@samdark samdark added type:enhancement Enhancement status:ready for adoption Feel free to implement this issue. labels Sep 21, 2017
@SSRico
Copy link
Author

SSRico commented Sep 28, 2017

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 👍

@samdark
Copy link
Member

samdark commented Sep 29, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants