From 902a9f683b507dd5dfee3b77fdccb794ba5a2900 Mon Sep 17 00:00:00 2001 From: Stefan Zerkalica Date: Sun, 1 Oct 2023 14:59:45 +0300 Subject: [PATCH] $mol_select_list_demo separate lazy example --- select/list/demo/demo.view.tree | 10 ++++++---- select/list/demo/demo.view.ts | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/select/list/demo/demo.view.tree b/select/list/demo/demo.view.tree index 2152b75b584..27b3772f75f 100644 --- a/select/list/demo/demo.view.tree +++ b/select/list/demo/demo.view.tree @@ -5,9 +5,6 @@ $mol_select_list_demo $mol_example_small rows / <= Friends $mol_select_list value? <=> friends? / - option_title* <= option_title* \ - filter_pattern? => filter_pattern? - pick_enabled true dictionary <= suggestions * jocker \Jocker harley \Harley Quinn @@ -19,9 +16,14 @@ $mol_select_list_demo $mol_example_small mask \Black Mask <= Friends_disabled $mol_select_list value? <=> friends? / - option_title* <= option_title* \ dictionary <= suggestions enabled false + <= Friends_lazy $mol_select_list + value? <=> friends_lazy? / + option_title* <= option_title* \ + filter_pattern? => filter_pattern? + pick_enabled true + dictionary <= suggestions_lazy <= suggestions tags / \select \tags diff --git a/select/list/demo/demo.view.ts b/select/list/demo/demo.view.ts index 3bf0dd86117..3baf04b0035 100644 --- a/select/list/demo/demo.view.ts +++ b/select/list/demo/demo.view.ts @@ -1,7 +1,7 @@ namespace $.$$ { export class $mol_select_list_demo extends $.$mol_select_list_demo { @ $mol_mem - override suggestions() { + override suggestions_lazy() { this.$.$mol_wait_timeout(500) this.filter_pattern() return super.suggestions() @@ -9,7 +9,7 @@ namespace $.$$ { override option_title(id: string) { if (! id) return '' - return this.suggestions()[id] + return this.suggestions_lazy()[id] } } }