-
Notifications
You must be signed in to change notification settings - Fork 30
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
Send parameters from button to modal-ajax #32
Comments
I have same scenario,do you have solution yet? |
Hi, i did it with js and jquery:
|
this can works,but in this case we cann't use this package any more.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, i need to put one parameter from button to widget
data-video="fbnSR-KBOiE"
to 'param' => 42 like this 'param' => fbnSR-KBOiE
How can i do this?
echo ModalAjax::widget([
'id' => 'showVideo',
'header' => 'Create Company',
//'toggleButton' => [
// 'label' => 'New Company',
// 'class' => 'btn btn-primary pull-right'
//],
'url' => \yii\helpers\Url::toRoute(['youtube/index', 'param' => 42]), // Ajax view with form to load
'ajaxSubmit' => true, // Submit the contained form as ajax, true by default
// ... any other yii2 bootstrap modal option you need
]);
?>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#showVideo" data-video="fbnSR-KBOiE" data-backdrop="false">
show video
The text was updated successfully, but these errors were encountered: