mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor Datatable doc and api-gen
This commit is contained in:
parent
5aa7ee1cc5
commit
1c142f83a6
2 changed files with 61 additions and 25 deletions
|
@ -777,6 +777,21 @@ const DataTableEvents = [
|
|||
type: "object",
|
||||
description: "Row data to edit."
|
||||
},
|
||||
{
|
||||
name: "event.newData",
|
||||
type: "object",
|
||||
description: "New row data after editing."
|
||||
},
|
||||
{
|
||||
name: "event.value",
|
||||
type: "object",
|
||||
description: "Field value of row data to edit."
|
||||
},
|
||||
{
|
||||
name: "event.newValue",
|
||||
type: "object",
|
||||
description: "Field value of new row data after editing"
|
||||
},
|
||||
{
|
||||
name: "event.field",
|
||||
type: "string",
|
||||
|
@ -836,30 +851,9 @@ const DataTableEvents = [
|
|||
description: "Row data to edit."
|
||||
},
|
||||
{
|
||||
name: "event.field",
|
||||
type: "string",
|
||||
description: "Field name of the row data."
|
||||
},
|
||||
{
|
||||
name: "event.index",
|
||||
type: "number",
|
||||
description: "Index of the row data to edit."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "cell-edit-save",
|
||||
description: "Callback to invoke when cell edit is saved.",
|
||||
arguments: [
|
||||
{
|
||||
name: "event.originalEvent",
|
||||
name: "event.newData",
|
||||
type: "object",
|
||||
description: "Browser event"
|
||||
},
|
||||
{
|
||||
name: "event.data",
|
||||
type: "object",
|
||||
description: "Row data to edit."
|
||||
description: "New row data after editing."
|
||||
},
|
||||
{
|
||||
name: "event.field",
|
||||
|
@ -874,8 +868,8 @@ const DataTableEvents = [
|
|||
]
|
||||
},
|
||||
{
|
||||
name: "cell-edit-cancel",
|
||||
description: "Callback to invoke when cell edit is cancelled.",
|
||||
name: "row-edit-save",
|
||||
description: "Callback to invoke when row edit is saved.",
|
||||
arguments: [
|
||||
{
|
||||
name: "event.originalEvent",
|
||||
|
@ -887,6 +881,42 @@ const DataTableEvents = [
|
|||
type: "object",
|
||||
description: "Row data to edit."
|
||||
},
|
||||
{
|
||||
name: "event.newData",
|
||||
type: "object",
|
||||
description: "New row data after editing."
|
||||
},
|
||||
{
|
||||
name: "event.field",
|
||||
type: "string",
|
||||
description: "Field name of the row data."
|
||||
},
|
||||
{
|
||||
name: "event.index",
|
||||
type: "number",
|
||||
description: "Index of the row data to edit."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "row-edit-cancel",
|
||||
description: "Callback to invoke when row edit is cancelled.",
|
||||
arguments: [
|
||||
{
|
||||
name: "event.originalEvent",
|
||||
type: "object",
|
||||
description: "Browser event"
|
||||
},
|
||||
{
|
||||
name: "event.data",
|
||||
type: "object",
|
||||
description: "Row data to edit."
|
||||
},
|
||||
{
|
||||
name: "event.newData",
|
||||
type: "object",
|
||||
description: "New row data after editing."
|
||||
},
|
||||
{
|
||||
name: "event.field",
|
||||
type: "string",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue