Skip to content
Discussion options

You must be logged in to vote

Thank you @BaccanoMob, that was a useful hint. I have not touched events and methods of Quasar objects yet. It was a nice opportunity to learn. Overall, this is pretty much what I wanted (plus extra stuff like triggering validation again and fixing other surprising errors that occured):

from dataclasses import field
from typing import List
import itertools
import string
from nicegui.observables import ObservableList
from nicegui import ui, app, binding, events


@binding.bindable_dataclass
class SearchState():
    queries: ObservableList[str] = field(default_factory=ObservableList)
    
        
class SearchUI:
    
    def __init__(self):
        self.state = SearchState()
        self.v…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nkonts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants