From e310b8eaac525dfb412a0399367217c59408ff40 Mon Sep 17 00:00:00 2001 From: Matt Gallagher Date: Fri, 16 Feb 2024 14:43:50 +0000 Subject: [PATCH 1/2] #27 ensure custom props are of type IAgGridProp --- src/AgGrid.fs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/AgGrid.fs b/src/AgGrid.fs index 242056e..eb71e85 100644 --- a/src/AgGrid.fs +++ b/src/AgGrid.fs @@ -156,8 +156,8 @@ type AgGrid() = Export = fun () -> ev?api?exportDataAsCsv(obj()) |} |> callback agGridProp<'row>("onGridReady", onGridReady) - static member inline enableRangeHandle = prop.custom("enableRangeHandle", true) - static member inline enableRangeSelection = prop.custom("enableRangeSelection", true) + static member inline enableRangeHandle (v: bool) = agGridProp<'row>("enableRangeHandle", v) + static member inline enableRangeSelection (v: bool) = agGridProp<'row>("enableRangeSelection", v) static member inline getContextMenuItems (callback : int -> int -> MenuItem list) = agGridProp<'row>("getContextMenuItems", fun x -> let menuItems = callback x?node?rowIndex x?column?colId [| @@ -178,14 +178,14 @@ type AgGrid() = callback startRow startColumn endRow endColumn) static member inline popupParent parent = agGridProp<'row>("popupParent", parent) static member inline processDataFromClipboard (callback : string[][] -> string[][]) = agGridProp<'row>("processDataFromClipboard", fun x -> callback x?data) - static member inline stopEditingWhenCellsLoseFocus = prop.custom("stopEditingWhenCellsLoseFocus", true) - static member inline stopEditingWhenGridLosesFocus = prop.custom("stopEditingWhenGridLosesFocus", true) - static member inline suppressClipboardApi = prop.custom("suppressClipboardApi", true) - static member inline suppressCopyRowsToClipboard = prop.custom("suppressCopyRowsToClipboard", true) - static member inline suppressCopySingleCellRanges = prop.custom("suppressCopySingleCellRanges", true) - static member inline suppressMultiRangeSelection = prop.custom("suppressMultiRangeSelection", true) - static member inline suppressRowHoverHighlight = prop.custom("suppressRowHoverHighlight", true) - static member inline suppressScrollOnNewData = prop.custom("suppressScrollOnNewData", true) + static member inline stopEditingWhenCellsLoseFocus (v: bool) = agGridProp<'row>("stopEditingWhenCellsLoseFocus", v) + static member inline stopEditingWhenGridLosesFocus (v: bool) = agGridProp<'row>("stopEditingWhenGridLosesFocus", v) + static member inline suppressClipboardApi (v: bool) = agGridProp<'row>("suppressClipboardApi", v) + static member inline suppressCopyRowsToClipboard (v: bool) = agGridProp<'row>("suppressCopyRowsToClipboard", v) + static member inline suppressCopySingleCellRanges (v: bool) = agGridProp<'row>("suppressCopySingleCellRanges", v) + static member inline suppressMultiRangeSelection (v: bool) = agGridProp<'row>("suppressMultiRangeSelection", v) + static member inline suppressRowHoverHighlight (v: bool) = agGridProp<'row>("suppressRowHoverHighlight", v) + static member inline suppressScrollOnNewData (v: bool) = agGridProp<'row>("suppressScrollOnNewData", v) static member inline key (v:string) = agGridProp<'row> (prop.key v) static member inline key (v:int) = agGridProp<'row> (prop.key v) From 694a2de8af705e4df83c834118303fc05adc21b3 Mon Sep 17 00:00:00 2001 From: Matt Gallagher Date: Fri, 16 Feb 2024 14:50:40 +0000 Subject: [PATCH 2/2] Increase patch version number --- src/Feliz.AgGrid.fsproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Feliz.AgGrid.fsproj b/src/Feliz.AgGrid.fsproj index fd53b33..fc66fc4 100644 --- a/src/Feliz.AgGrid.fsproj +++ b/src/Feliz.AgGrid.fsproj @@ -5,7 +5,7 @@ net6.0 true Compositional IT - 1.0.0 + 1.0.1 https://github.com/CompositionalIT/feliz-ag-grid https://github.com/CompositionalIT/feliz-ag-grid