Open asudally opened 4 years ago
Trying to get property 'buttons' of non-object
$url = Url::toRoute([ '/file/file/download', 'id' => $model->id ]); echo \yii2assets\pdfjs\PdfJs::widget([ 'url' => $url, 'width' => '100%', // 'height' => '100%', 'buttons' => [ 'presentationMode' => false, 'openFile' => false, 'print' => false, 'download' => true, 'viewBookmark' => false, 'secondaryToolbarToggle' => false ] ]);
hello, did you find a solution to the problem?
Put this into your common config
'modules' => [ 'pdfjs' => [ 'class' => '\yii2assets\pdfjs\Module', ] ],
Trying to get property 'buttons' of non-object