pub struct TagInputGroupConfig<T: TagLike> {
pub available_tags: Vec<T>,
pub initial_selected: Vec<T>,
pub filter: Option<fn(&T, &str) -> bool>,
pub sort_items: Option<fn(&T, &T) -> Ordering>,
pub sort_groups: Option<fn(&str, &str) -> Ordering>,
pub max_items_per_group: Option<usize>,
pub value: Option<Signal<Vec<T>>>,
pub query: Option<Signal<String>>,
}Expand description
Configuration for the grouped tag input hook.
Uses fn pointers (not closures) because they are Copy and trivially
captured by use_memo.
Fields§
§initial_selected: Vec<T>§filter: Option<fn(&T, &str) -> bool>Custom filter: receives (tag, lowercase_query). Default: substring match on name().
sort_items: Option<fn(&T, &T) -> Ordering>Sort items within each group. Default: no sort (insertion order).
sort_groups: Option<fn(&str, &str) -> Ordering>Sort group headers. Default: no sort (first-seen order).
max_items_per_group: Option<usize>Max items shown per group. None = unlimited. total_count still reflects all matches.
value: Option<Signal<Vec<T>>>Parent-owned signal for selected tags (controlled mode). initial_selected ignored when set.
query: Option<Signal<String>>Parent-owned signal for search query (controlled mode).
Auto Trait Implementations§
impl<T> Freeze for TagInputGroupConfig<T>
impl<T> !RefUnwindSafe for TagInputGroupConfig<T>
impl<T> !Send for TagInputGroupConfig<T>
impl<T> !Sync for TagInputGroupConfig<T>
impl<T> Unpin for TagInputGroupConfig<T>where
T: Unpin,
impl<T> UnsafeUnpin for TagInputGroupConfig<T>
impl<T> !UnwindSafe for TagInputGroupConfig<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.