mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-27 08:24:06 +00:00
create alt button to open pdf in new tab
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<div class="row">
|
||||
<div class="col text-center">
|
||||
<img :src="src" class="w-100" v-if="type !== 'pdf'">
|
||||
<div class="btn btn-info pointer" @click="openPdfInNewTab()" v-show="type !== 'pdf'">Open Pdf in new window</div>
|
||||
<div class="btn btn-complete pointer m-b-20" @click="openPdfInNewTab()" v-show="type !== 'pdf'">Open Pdf in new window</div>
|
||||
<iframe v-if="type === 'pdf'" class="pdf-display w-100 scrollable" style="height: 80vh" :src="'data:application/pdf;base64,'+src"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user