mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 00:57:26 +00:00
Select: a story with the searchable dropdown open
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user