Skip to content

Commit

Permalink
$mol_select_list_demo separate lazy example
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Oct 1, 2023
1 parent d3a60ca commit 902a9f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions select/list/demo/demo.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions select/list/demo/demo.view.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
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()
}

override option_title(id: string) {
if (! id) return ''
return this.suggestions()[id]
return this.suggestions_lazy()[id]
}
}
}

0 comments on commit 902a9f6

Please sign in to comment.