Skip to content

Commit

Permalink
Added sanitizeInputValues configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
gnbm committed Aug 20, 2024
1 parent 026f095 commit 75a11b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace OSFramework.DataGrid.Configuration.Grid {
public rowHeader: Enum.RowHeader;
public rowHeight: number;
public rowsPerPage: number;
public sanitizeInputValues: boolean;
public selectionMode: number;
public serverSidePagination: boolean;
public showAggregateValues: boolean;
Expand Down
4 changes: 4 additions & 0 deletions src/OSFramework/DataGrid/Configuration/IConfigurationGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ namespace OSFramework.DataGrid.Configuration {
*/
keyBinding: string;
/**
* Indicates if the grid should sanitize the input values or not
*/
sanitizeInputValues: boolean;
/**
Indicates if the grid is in server side pagination mode
*/
serverSidePagination: boolean;
Expand Down
1 change: 1 addition & 0 deletions src/OutSystems/GridAPI/GridManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace OutSystems.GridAPI.GridManager {
let output = false;
if (grid !== undefined) {
if (grid.isReady && data !== '' && data !== '{}') {
if (grid.config.sanitizeInputValues) data = OSFramework.DataGrid.Helper.Sanitize(data);
grid.setData(data);
}
output = true;
Expand Down

0 comments on commit 75a11b8

Please sign in to comment.