Skip to main content

WidgetSearchFn

Type Alias WidgetSearchFn 

Source
pub type WidgetSearchFn = Arc<dyn Fn(&Context, &AppHandle, &Value, &str) -> Vec<(String, String)> + Send + Sync>;
Expand description

A widget kind’s search: the items of a node of its kind matching the query (every word), each as its key and its title. The key is what scope/section/<key> lands on: the widget marks the item while its section shows (Admin::marked) and scrolls to it once (Admin::take_key).

Aliased Type§

pub struct WidgetSearchFn { /* private fields */ }