Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 72148cb

Browse files
committedMar 2, 2021
Demo update for overlay panel
1 parent 3748b2d commit 72148cb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/views/overlaypanel/OverlayPanelDoc.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ toggle(event) {
177177
<pre v-code><code><template v-pre>
178178
&lt;Button type="button" icon="pi pi-search" :label="selectedProduct ? selectedProduct.name : 'Select a Product'" @click="toggle" aria:haspopup="true" aria-controls="overlay_panel" /&gt;
179179

180-
&lt;OverlayPanel ref="op" appendTo="body" :showCloseIcon="true" id="overlay_panel" style="width: 450px"&gt;
180+
&lt;OverlayPanel ref="op" appendTo="body" :showCloseIcon="true" id="overlay_panel" style="width: 450px" :breakpoints="{'960px': '75vw'}"&gt;
181181
&lt;DataTable :value="products" v-model:selection="selectedProduct" selectionMode="single" :paginator="true" :rows="5" @row-select="onProductSelect" responsiveLayout="scroll"&gt;
182182
&lt;Column field="name" header="Name" sortable style="width: 50%"&gt;&lt;/Column&gt;
183183
&lt;Column header="Image" style="width: 20%"&gt;
@@ -246,7 +246,7 @@ export default {
246246
<div class="card">
247247
<Button type="button" icon="pi pi-search" :label="selectedProduct ? selectedProduct.name : 'Select a Product'" @click="toggle" aria:haspopup="true" aria-controls="overlay_panel" />
248248
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'}">
250250
<DataTable :value="products" v-model:selection="selectedProduct" selectionMode="single" :paginator="true" :rows="5" @rowSelect="onProductSelect">
251251
<Column field="name" header="Name" sortable style="width: 50%"></Column>
252252
<Column header="Image"style="width: 20%">

‎src/views/responsive/ResponsiveDemo.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@
372372
<div class="card p-fluid">
373373
<h5>Overlay Panel</h5>
374374
<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'}">
376376
<DataTable :value="products" v-model:selection="selectedProduct" selectionMode="single" :paginator="true" :rows="5" @row-select="onProductSelect">
377377
<Column field="name" header="Name" sortable></Column>
378378
<Column header="Image">
@@ -884,7 +884,7 @@
884884
&lt;div class="card p-fluid"&gt;
885885
&lt;h5&gt;Overlay Panel&lt;/h5&gt;
886886
&lt;Button type="button" label="Choose" @click="toggle" icon="pi pi-search" /&gt;
887-
&lt;OverlayPanel ref="op" appendTo="body" :showCloseIcon="true" style="width: 450px"&gt;
887+
&lt;OverlayPanel ref="op" appendTo="body" :showCloseIcon="true" style="width: 450px" :breakpoints="{'960px':'75vw'}"&gt;
888888
&lt;DataTable :value="products" v-model:selection="selectedProduct" selectionMode="single" :paginator="true" :rows="5" @row-select="onProductSelect"&gt;
889889
&lt;Column field="name" header="Name" sortable&gt;&lt;/Column&gt;
890890
&lt;Column header="Image"&gt;

0 commit comments

Comments
 (0)
Please sign in to comment.