Torch.FilterView.filter_boolean_input

You're seeing just the function filter_boolean_input, go back to Torch.FilterView module for more information.
Link to this function

filter_boolean_input(prefix, field, params)

View Source

Specs

filter_boolean_input(prefix(), field(), map()) :: Phoenix.HTML.safe()

Generates a filter select box for a boolean field.

Example

iex> params = %{"post" => %{"draft_equals" => "false"}}
iex> filter_boolean_input(:post, :draft, params) |> safe_to_string()
"<input name=\"post[draft_equals]\" type=\"hidden\" value=\"false\"><input id=\"post_draft_equals\" name=\"post[draft_equals]\" type=\"checkbox\" value=\"true\">"