We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello the test case: Tabular Input with kartik-v/yii2-widget-fileinput:
<?= TabularInput::widget([ 'allowEmptyList' => true, 'models' => $models, 'attributeOptions' => [ // ... ], 'columns' => [ // ... [ 'name' => 'imageFile', 'title' => 'imageFile', 'type' => FileInput::className(), 'options' => [ 'options' => ['accept' => 'image/*'], 'pluginEvents' => [ 'filecleared' => 'function () { console.log('File cleared!); }', ], ], ], ], ]) ?>
this code generates the next javascript:
jQuery('#item-{multiple-index}-imagefile').fileinput(fileinput_84f9f1b5); jQuery('#item-{multiple-index}-imagefile').on('filecleared', function () { console.log('File cleared'); });
this js code isn't found by this 'if' in BaseRenderer.php:
if (preg_match('/^[^{]+{multiple-index}.*$/', $js) === 1) {
I recommend the m (PCRE_MULTILINE) regexp modifier:
if (preg_match('/^[^{]+{multiple-index}.*$/m', $js) === 1) {
This working for me.
Sincerely, E.
The text was updated successfully, but these errors were encountered:
Thx, closed via a0fa5c8
Sorry, something went wrong.
No branches or pull requests
Hello
the test case:
Tabular Input with kartik-v/yii2-widget-fileinput:
this code generates the next javascript:
this js code isn't found by this 'if' in BaseRenderer.php:
I recommend the m (PCRE_MULTILINE) regexp modifier:
This working for me.
Sincerely, E.
The text was updated successfully, but these errors were encountered: