Select: a story with the searchable dropdown open

This commit is contained in:
aiongg
2026-11-21 23:09:50 +00:00
parent a2cb4687ce
commit 8924367ed0
@@ -115,6 +115,12 @@ fn select_open(ui: &mut Ui, data: &mut StoryData) -> StoryOutput {
Select::new("Blend mode", data.bind("open", 1u8), &entries).show(ui).into()
}
#[story(Select<'static, u8>, covers = [Open], drive = Drive::Custom(open_listbox))]
fn select_searchable_open(ui: &mut Ui, data: &mut StoryData) -> StoryOutput {
let entries = resampling();
Select::new("Resampling", data.bind("searchable_open", 2u8), &entries).searchable().show(ui).into()
}
#[story(Select<'static, u8>, covers = [], disabled_text = "Pick a layer first")]
fn select_with_reason(ui: &mut Ui, data: &mut StoryData) -> StoryOutput {
let entries = modes();