FilterDropdownAnyField
fun FilterDropdownAnyField(currentValue: Any?, values: ImmutableList<Any>, onClick: (Any) -> Unit, modifier: Modifier = Modifier, getTitle: @Composable (Any) -> String = { it.toString() }, placeholder: String = "", checked: (Any) -> Boolean? = null, contentPadding: PaddingValues = TableTextFieldDefaults.contentPadding(), showBorder: Boolean = true, searchPlaceholder: String? = null, selectAllLabel: String? = null, selectNoneLabel: String? = null, onShownCheckedChange: (List<Any>, Boolean) -> Unit? = null, getHint: @Composable (Any) -> String?? = null)
Generic dropdown field used by filter panels to select one or many values of arbitrary type. If checked is provided, the menu displays checkboxes for multi-select.
The menu scrolls within the height available in the window.
Parameters
getHint
an optional second line under an option's title in the menu; the field and the search use the title only
selectAllLabel
label of the action that checks every option shown
selectNoneLabel
label of the action that unchecks every option shown
onShownCheckedChange
called by the Select all / None actions with the options shown (those matching the search) and whether to check them; the actions appear only in multi-select mode when this and both labels are set