From 7db9f504457f46f83523152823bfb609974544c6 Mon Sep 17 00:00:00 2001 From: tomfacal <88186642+tomfacal@users.noreply.github.com> Date: Wed, 22 Oct 2025 10:49:14 +0200 Subject: [PATCH] Updated reinitialize method --- .../types/OTableInitializationOptions.yml | 34 ++++++++++++------- .../otableData/types/PaginationData.yml | 25 ++++++++++++++ _includes/o-component-table.md | 2 ++ docs/components/data/35-o-table.component.md | 30 +++++++++++++--- 4 files changed, 73 insertions(+), 18 deletions(-) create mode 100644 _data/components/otableData/types/PaginationData.yml diff --git a/_data/components/otableData/types/OTableInitializationOptions.yml b/_data/components/otableData/types/OTableInitializationOptions.yml index 7c2e136ec..d36e2ec72 100644 --- a/_data/components/otableData/types/OTableInitializationOptions.yml +++ b/_data/components/otableData/types/OTableInitializationOptions.yml @@ -1,4 +1,4 @@ -type : "OTableInitializationOptions" +type: "OTableInitializationOptions" propertiesColumns: ["Name", "Type", "Description"] @@ -8,23 +8,24 @@ attributes: [{ optional: true },{ name: "service", - optional: true, - type: "string" + type: "string", + optional: true },{ name: "columns", - optional: true, type: "string", - + optional: true },{ name: "visibleColumns", type: "string", optional: true -}, -{ +},{ + name: "defaultVisibleColumns", + type: "string", + optional: true +},{ name: "keys", type: "string", optional: true - },{ name: "sortColumns", type: "string", @@ -36,9 +37,16 @@ attributes: [{ },{ name: "filterColumns", type: "string", - description : "The old value for the target." - + optional: true, + description: "Columns that can be used to filter data. The old value for the target." +},{ + name: "data", + type: "ServiceResponse", + optional: true, + description: "Initial table data returned from the associated service." +},{ + name: "paginationData", + type: "PaginationData", + optional: true, + description: "Pagination information such as current page, size, and total records." },] - - - diff --git a/_data/components/otableData/types/PaginationData.yml b/_data/components/otableData/types/PaginationData.yml new file mode 100644 index 000000000..e79de08bc --- /dev/null +++ b/_data/components/otableData/types/PaginationData.yml @@ -0,0 +1,25 @@ +type: "PaginationData" + +propertiesColumns: ["Name", "Type", "Description"] + +attributes: [{ + name: "pageNumber", + type: "number", + optional: true, + description: "Current page number." +},{ + name: "pageSize", + type: "number", + optional: true, + description: "Number of records per page." +},{ + name: "startRecordIndex", + type: "number", + optional: true, + description: "Starting index of the current page’s records." +},{ + name: "totalQueryRecordsNumber", + type: "number", + optional: true, + description: "Total number of records returned by the query." +},] diff --git a/_includes/o-component-table.md b/_includes/o-component-table.md index b631595e6..80ba8a0e7 100644 --- a/_includes/o-component-table.md +++ b/_includes/o-component-table.md @@ -205,6 +205,8 @@