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

Pager syntax #5

Open
Faryshta opened this issue Jul 14, 2015 · 3 comments
Open

Pager syntax #5

Faryshta opened this issue Jul 14, 2015 · 3 comments

Comments

@Faryshta
Copy link
Contributor

I propose the following sintax for the pager.

Wizard::widget([
   'items' => ...,
   'pager' => [
        'options' => [...],
        Wizard::FIRST => 'Inicio',
        Wizard::PREV => 'ANTERIOR',
        Wizard::NEXT => [
             'label' => 'Siguiente',
             'options' => ['class' => 'success'],
        ]
        Wizard::LAST => 'FIN',
   ]
])
@Chofoteddy
Copy link
Owner

Wizard::widget([
   'items' => ...,
   'pagerOptions' => [
        Wizard::FIRST => 'Inicio',
        Wizard::PREV => 'ANTERIOR',
        Wizard::NEXT => [
             'label' => 'Siguiente',
             'options' => ['class' => 'success'],
        ]
        Wizard::LAST => 'FIN',
   ]
])

Defaults "pagerOptions":

[
        Wizard::FIRST => '<<',
        Wizard::PREV => Yii::t('app', '< Anterior'),
        Wizard::NEXT => Yii::t('app', 'Siguiente >'),
        Wizard::LAST => '>>',
]

@Faryshta
Copy link
Contributor Author

Where do you leave options for the <div class="pager"> element? For example if I want to add extra CSS classes?

@waza-ari
Copy link

Anything new on this one? The wizard is rather useless when there are no pager elements...

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

No branches or pull requests

3 participants