-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GUI: SingleFieldEditorPanelBase: Fix missing
editorSuggestions
prop…
…erty getter implementation Fix-up of 67b0bad Review action #37 (comment)
- Loading branch information
1 parent
9097d36
commit 254b901
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
# See the file COPYING.txt at the root of this distribution for more details. | ||
|
||
|
||
__version__ = "2024.08.29" | ||
__version__ = "2024.08.30" | ||
__authors__ = ( | ||
"Julien Cochuyt <[email protected]>", | ||
"André-Abush Clause <[email protected]>", | ||
|
@@ -1079,6 +1079,7 @@ class SingleFieldEditorPanelBase(SingleFieldEditorMixin, TreeContextualPanel): | |
@dataclass | ||
class CategoryParams(TreeContextualPanel.CategoryParams): | ||
editorChoices: Mapping[Any, str] = None | ||
editorSuggestions: Sequence[str] = None | ||
fieldDisplayName: str = None | ||
fieldName: str = None | ||
onEditor_change: Callable[[Self], None] = None | ||
|
@@ -1104,6 +1105,10 @@ def __init__(self, *args, editorType: EditorType = None, **kwargs): | |
def editorChoices(self) -> str: | ||
return self.categoryParams.editorChoices | ||
|
||
@property | ||
def editorSuggestions(self) -> str: | ||
return self.categoryParams.editorSuggestions | ||
|
||
@property | ||
def fieldDisplayName(self) -> str: | ||
return self.categoryParams.fieldDisplayName | ||
|