This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 72148cb
1 parent 3748b2d commit 72148cb Copy full SHA for 72148cb
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ toggle(event) {
177
177
<pre v-code ><code ><template v-pre >
178
178
< ; Button type="button" icon="pi pi-search" :label="selectedProduct ? selectedProduct.name : 'Select a Product'" @click="toggle" aria:haspopup="true" aria-controls="overlay_panel" /> ;
179
179
180
- < ; OverlayPanel ref="op" appendTo="body" :showCloseIcon="true" id="overlay_panel" style="width: 450px"> ;
180
+ < ; OverlayPanel ref="op" appendTo="body" :showCloseIcon="true" id="overlay_panel" style="width: 450px" :breakpoints="{'960px': '75vw'}" > ;
181
181
< ; DataTable :value="products" v-model:selection="selectedProduct" selectionMode="single" :paginator="true" :rows="5" @row-select="onProductSelect" responsiveLayout="scroll"> ;
182
182
< ; Column field="name" header="Name" sortable style="width: 50%"> ;< ; /Column> ;
183
183
< ; Column header="Image" style="width: 20%"> ;
@@ -246,7 +246,7 @@ export default {
246
246
<div class="card">
247
247
<Button type="button" icon="pi pi-search" :label="selectedProduct ? selectedProduct.name : 'Select a Product'" @click="toggle" aria:haspopup="true" aria-controls="overlay_panel" />
248
248
249
- <OverlayPanel ref="op" appendTo="body" :showCloseIcon="true" id="overlay_panel" style="width: 450px">
249
+ <OverlayPanel ref="op" appendTo="body" :showCloseIcon="true" id="overlay_panel" style="width: 450px" :breakpoints="{'960px': '75vw'}" >
250
250
<DataTable :value="products" v-model:selection="selectedProduct" selectionMode="single" :paginator="true" :rows="5" @rowSelect="onProductSelect">
251
251
<Column field="name" header="Name" sortable style="width: 50%"></Column>
252
252
<Column header="Image"style="width: 20%">
Original file line number Diff line number Diff line change 372
372
<div class =" card p-fluid" >
373
373
<h5 >Overlay Panel</h5 >
374
374
<Button type =" button" label =" Choose" @click =" toggle" icon =" pi pi-search" />
375
- <OverlayPanel ref =" op" appendTo =" body" :showCloseIcon =" true" style =" width : 450px " >
375
+ <OverlayPanel ref =" op" appendTo =" body" :showCloseIcon =" true" style =" width : 450px " :breakpoints = " {'960px':'75vw'} " >
376
376
<DataTable :value =" products" v-model:selection =" selectedProduct" selectionMode =" single" :paginator =" true" :rows =" 5" @row-select =" onProductSelect" >
377
377
<Column field =" name" header =" Name" sortable ></Column >
378
378
<Column header =" Image" >
884
884
< ; div class="card p-fluid"> ;
885
885
< ; h5> ; Overlay Panel< ; /h5> ;
886
886
< ; Button type="button" label="Choose" @click="toggle" icon="pi pi-search" /> ;
887
- < ; OverlayPanel ref="op" appendTo="body" :showCloseIcon="true" style="width: 450px"> ;
887
+ < ; OverlayPanel ref="op" appendTo="body" :showCloseIcon="true" style="width: 450px" :breakpoints="{'960px':'75vw'}" > ;
888
888
< ; DataTable :value="products" v-model:selection="selectedProduct" selectionMode="single" :paginator="true" :rows="5" @row-select="onProductSelect"> ;
889
889
< ; Column field="name" header="Name" sortable> ;< ; /Column> ;
890
890
< ; Column header="Image"> ;
You can’t perform that action at this time.
0 commit comments