yew-autocomplete

Crates.ioyew-autocomplete
lib.rsyew-autocomplete
version0.3.1
sourcesrc
created_at2023-06-06 22:23:29.129004
updated_at2023-12-04 23:18:55.016564
descriptionAuto-complete input for yew.rs
homepage
repositoryhttps://git.vdx.hu/voidcontext/yew-components
max_upload_size
id884244
size85,665
Gabor Pihaj (voidcontext)

documentation

README

yew-autocomplete build status badge

A highly configurable auto completion component for yew.rs.

A minimal example that showcases the main building blocks:

use yew::prelude::*;
use yew_autocomplete::{view::Bulma, Autocomplete, ItemResolver, ItemResolverResult};
use yew_commons::FnProp;

let onchange = |_: Vec<String>| ();
let resolve_items: ItemResolver<String> =
    FnProp::from(|_: String| -> ItemResolverResult<String>  {
        Box::pin(async { Ok(Vec::<String>::new()) })
    });

html! {
    <Autocomplete<String>
        {resolve_items}
        {onchange}
        auto = false
    >
        <Bulma<String> />
    </Autocomplete<String>>
};
Commit count: 0

cargo fmt