Refactory Buefy templates to use WholePage and ThisPage components
plus add `GridFilter.set_choices()` method
This commit is contained in:
parent
c64fca852c
commit
1bb0330ab5
36 changed files with 806 additions and 613 deletions
|
@ -1003,7 +1003,10 @@ class Grid(object):
|
|||
|
||||
choices = []
|
||||
choice_labels = {}
|
||||
if self.enums and filtr.key in self.enums:
|
||||
if filtr.choices:
|
||||
choices = list(filtr.choices)
|
||||
choices_labels = dict(filtr.choices)
|
||||
elif self.enums and filtr.key in self.enums:
|
||||
choices = list(self.enums[filtr.key])
|
||||
choice_labels = self.enums[filtr.key]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue