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

Update Panel.php #23

Merged
merged 1 commit into from
Jul 12, 2017
Merged

Update Panel.php #23

merged 1 commit into from
Jul 12, 2017

Conversation

SamMousa
Copy link
Contributor

@SamMousa SamMousa commented Jul 6, 2017

Make $tools public to allow directly adding items to the panels menu. Instead of just the headerMenu.

image

Make `$tools` public to allow directly adding items to the panels menu. Instead of just the `headerMenu`.
@fps01
Copy link
Member

fps01 commented Jul 7, 2017

@SamMousa hello!
Thanks for PR.
Could you wrote an usage example for http://gentelella.yiister.ru/site/panel page?

@SamMousa
Copy link
Contributor Author

SamMousa commented Jul 7, 2017

<?php
        Panel::begin(
            [
                'header' => 'Panel with extra tool menu items',
                'icon' => 'cog',
                'tools' => [
                    [
                        'label' => 'The first item',
                        'url' => '#',
                    ],
                    [
                        'label' => 'The second item',
                        'url' => '#',
                    ],
                ],
            ]
        )
        ?>

@fps01 fps01 merged commit 98735fd into yiister:master Jul 12, 2017
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