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

Added view option to render a view with Yii inside tab content #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nilsburg
Copy link

@nilsburg nilsburg commented May 9, 2024

Q A
Is bugfix?
New feature? ✔️
Breaks BC?
Fixed issues

Adds the posibility to render a view inside a Tab content.

echo Tabs::widget([
    'items'   =>[
        [
            'label'   => 'Tab label',
            'view'    => ['@app/views/site/my-view',['param1'=>'value1']],
            'visible' => true,
        ],
    ],
]);

The main benefit is that when used with visible = false it won't render the view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants