WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 695443a

Browse files
committed
Added validation for the pageNo property in contentConfig since a setter function has been introduced that can change the value.
1 parent 8ae3663 commit 695443a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

app/client/src/widgets/TableWidgetV2/widget/propertyConfig/contentConfig.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,20 @@ export default [
247247
hidden: (props: TableWidgetProps) => !props.serverSidePaginationEnabled,
248248
dependencies: ["serverSidePaginationEnabled"],
249249
},
250+
{
251+
propertyName: "pageNo",
252+
label: "Page number",
253+
controlType: "INPUT_TEXT",
254+
isBindProperty: true,
255+
isTriggerProperty: false,
256+
validation: {
257+
type: ValidationTypes.NUMBER,
258+
params: {
259+
min: 1,
260+
default: 1,
261+
},
262+
},
263+
},
250264
],
251265
expandedByDefault: false,
252266
},

0 commit comments

Comments
 (0)