Skip to content

Commit 0ced92b

Browse files
committed
add withCustomizations attribute to RudderTable options builder
1 parent d219c84 commit 0ced92b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/RudderTable.elm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ type alias ConfigBuilder row msg =
318318
-}
319319
type alias OptionsBuilder row msg =
320320
{ newOptions : Options row msg
321+
, withCustomizations : Customizations row msg -> Options row msg -> Options row msg
321322
, withRefresh : List (Attribute (Msg msg)) -> Options row msg -> Options row msg
322323
, withStorage : StorageOptionsConfig msg -> Options row msg -> Options row msg
323324
, withFilter : FilterOptionsType row msg -> Options row msg -> Options row msg
@@ -341,6 +342,7 @@ buildConfig =
341342
buildOptions : OptionsBuilder row msg
342343
buildOptions =
343344
{ newOptions = defaultOptions
345+
, withCustomizations = \opt -> \state -> { state | customizations = opt }
344346
, withRefresh = \opt -> \state -> { state | refresh = RefreshButtonOptions opt }
345347
, withStorage = \opt -> \state -> { state | storage = StorageOptions opt }
346348
, withFilter = \opt -> \state -> { state | filter = FilterOptions opt }

0 commit comments

Comments
 (0)