Skip to content

Commit

Permalink
Set version as 3.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Oct 5, 2021
1 parent a04c9c7 commit 82afb52
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package-build.json
@@ -1,6 +1,6 @@
{
"name": "primevue",
"version": "3.7.3-SNAPSHOT",
"version": "3.8.0",
"homepage": "https://www.primefaces.org/primevue",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "primevue",
"version": "3.7.3-SNAPSHOT",
"version": "3.8.0",
"homepage": "https://www.primefaces.org/primevue",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/AppFooter.vue
@@ -1,7 +1,7 @@
<template>
<div class="layout-footer">
<div class="layout-footer-left">
<span>PrimeVue 3.7.3 on Vue 3 by </span>
<span>PrimeVue 3.8.0 on Vue 3 by </span>
<a href="https://www.primetek.com.tr">PrimeTek</a>
</div>

Expand Down
16 changes: 9 additions & 7 deletions src/views/datatable/DataTableDoc.vue
Expand Up @@ -1116,9 +1116,10 @@ export default {
so that the editing behavior is implemented by the page author whether it utilizes v-model or vuex.
</p>

<p>Individuals cell editing is configured by setting the <i>editMode</i> to "cell" and defining editors with the "editor" template. The content of the
editor defines how the editing is implemented, below example demonstrates two cases. In the first example, simple v-model editors are utilized. This is pretty straightforward in most cases.
On the other hand, second example is more advanced to consider validations and ability to revert values with the escape key.</p>
<p>Individual cell editing is configured by setting the <i>editMode</i> to <b>cell</b>, defining editors with the <b>editor</b> template along with the <i>@cell-edit-complete</i> event. The content of the
editor defines how the editing is implemented. The editor template receives a clone of the row data and using <i>@cell-edit-complete</i> event the new value can be updated to the model or cancelled.
This also provides flexibility to apply conditional logic such as implementing validations.</p>

<pre v-code><code><template v-pre>
&lt;h5&gt;Cell Editing&lt;/h5&gt;
&lt;DataTable :value="cars" editMode="cell" @cell-edit-complete="onCellEditComplete"&gt;
Expand Down Expand Up @@ -1216,25 +1217,26 @@ export default {

</code></pre>

<p>Row Editing is defined by setting <i>cellEdit</i> as "row", defining <i>editingRows</i> with the v-model directive to hold the reference to the editing rows and adding a row editor column to provide the editing controls. Note that
<p>Row Editing is specified by setting <i>cellEdit</i> as <b>row</b>, defining <i>editingRows</i> with the v-model directive to hold the reference of the editing rows,
adding a row editor column to provide the editing controls and implementing <i>@row-edit-save</i> to update the original row data. Note that
since <i>editingRows</i> is two-way binding enabled, you may use it to initially display one or more rows in editing more or programmatically toggle row editing.</p>
<pre v-code><code><template v-pre>
&lt;h3&gt;Row Editing&lt;/h3&gt;
&lt;DataTable :value="cars" editMode="row" dataKey="vin" v-model:editingRows="editingRows" @row-edit-save="onRowEditSave"&gt;
&lt;Column field="vin" header="Vin"&gt;&lt;/Column&gt;
&lt;Column field="year" header="Year"&gt;
&lt;template #editor="slotProps"&gt;
&lt;InputText v-model="slotProps.data[slotProps.column.field]" autofocus/&gt;
&lt;InputText v-model="slotProps.data[slotProps.field]" autofocus/&gt;
&lt;/template&gt;
&lt;/Column&gt;
&lt;Column field="brand" header="Brand"&gt;
&lt;template #editor="slotProps"&gt;
&lt;InputText v-model="slotProps.data[slotProps.column.field]" /&gt;
&lt;InputText v-model="slotProps.data[slotProps.field]" /&gt;
&lt;/template&gt;
&lt;/Column&gt;
&lt;Column field="color" header="Color"&gt;
&lt;template #editor="slotProps"&gt;
&lt;InputText v-model="slotProps.data[slotProps.column.field]" /&gt;
&lt;InputText v-model="slotProps.data[slotProps.field]" /&gt;
&lt;/template&gt;
&lt;/Column&gt;
&lt;Column :rowEditor="true" headerStyle="width:7rem" bodyStyle="text-align:center"&gt;&lt;/Column&gt;
Expand Down
11 changes: 6 additions & 5 deletions src/views/setup/Setup.vue
Expand Up @@ -16,7 +16,7 @@
<p>PrimeVue is available at <a href="https://www.npmjs.com/package/primevue">npm</a>, if you have an existing application run the following commands to download PrimeVue and PrimeIcons to your project.</p>

<pre v-code.script><code>
npm install primevue@^3.7.1 --save
npm install primevue@^3.8.0 --save
npm install primeicons --save

</code></pre>
Expand Down Expand Up @@ -87,12 +87,13 @@ import Dialog from 'primevue/dialog/sfc';
&lt;link href="https://unpkg.com/primeicons/primeicons.css" rel="stylesheet"&gt;

&lt;script src="https://unpkg.com/vue@next"&gt;&lt;/script&gt;
&lt;script src="https://unpkg.com/primevue/inputtext/inputtext.min.js"&gt;&lt;/script&gt;
&lt;script src="https://unpkg.com/primevue/core/core.min.js"&gt;&lt;/script&gt;
&lt;script src="https://unpkg.com/primevue/slider/slider.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id="app"&gt;
&lt;p-inputtext v-model="val"&gt;&lt;/p-inputtext&gt;
&lt;p-slider v-model="val"&gt;&lt;/p-slider&gt;
&lt;h6&gt;{{val}}&lt;/h6&gt;
&lt;/div&gt;

Expand All @@ -108,11 +109,11 @@ import Dialog from 'primevue/dialog/sfc';
};
},
components: {
'p-inputtext': primevue.inputtext
'p-slider': primevue.slider
}
};

createApp(App).mount("#app");
createApp(App).use(primevue.config.default).mount("#app");
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
Expand Down

0 comments on commit 82afb52

Please sign in to comment.