diff --git a/lib/backpex/fields/belongs_to.ex b/lib/backpex/fields/belongs_to.ex index 221d0df1..f152e01a 100644 --- a/lib/backpex/fields/belongs_to.ex +++ b/lib/backpex/fields/belongs_to.ex @@ -24,6 +24,14 @@ defmodule Backpex.Fields.BelongsTo do prompt: [ doc: "The text to be displayed when no option is selected or function that receives the assigns.", type: {:or, [:string, {:fun, 1}]} + ], + debounce: [ + doc: "Timeout value (in milliseconds), \"blur\" or function that receives the assigns.", + type: {:or, [:pos_integer, :string, {:fun, 1}]} + ], + throttle: [ + doc: "Timeout value (in milliseconds) or function that receives the assigns.", + type: {:or, [:pos_integer, {:fun, 1}]} ] ] diff --git a/lib/backpex/fields/select.ex b/lib/backpex/fields/select.ex index 5ac96860..7b898805 100644 --- a/lib/backpex/fields/select.ex +++ b/lib/backpex/fields/select.ex @@ -8,6 +8,14 @@ defmodule Backpex.Fields.Select do prompt: [ doc: "The text to be displayed when no option is selected or function that receives the assigns.", type: {:or, [:string, {:fun, 1}]} + ], + debounce: [ + doc: "Timeout value (in milliseconds), \"blur\" or function that receives the assigns.", + type: {:or, [:pos_integer, :string, {:fun, 1}]} + ], + throttle: [ + doc: "Timeout value (in milliseconds) or function that receives the assigns.", + type: {:or, [:pos_integer, {:fun, 1}]} ] ]