From c501ab683b53931d4721e00257d350a513f28b31 Mon Sep 17 00:00:00 2001 From: bobslee Date: Fri, 24 May 2024 11:51:30 +0200 Subject: [PATCH] Add dataSrc getter (property) in selectboxesComponent. --- CHANGELOG.md | 4 ++++ formiodata/components/selectboxes.py | 4 ++++ pyproject.toml | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1faa5fd..9e8e7a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.0.3 + +Add `dataSrc` getter (property) in `selectboxesComponent`. + ## 2.0.2 Improve the `selectComponent` class to support the property Data Source Type (`dataSrc`) with URL.\ diff --git a/formiodata/components/selectboxes.py b/formiodata/components/selectboxes.py index 31394c6..6a82b97 100644 --- a/formiodata/components/selectboxes.py +++ b/formiodata/components/selectboxes.py @@ -6,6 +6,10 @@ class selectboxesComponent(Component): + @property + def dataSrc(self): + return self.raw.get('dataSrc') + @property def values_labels(self): comp = self.component_owner.input_components.get(self.key) diff --git a/pyproject.toml b/pyproject.toml index 1bb0ae7..45ad379 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "formio-data" -version = "2.0.2" +version = "2.0.3" homepage = "https://github.com/novacode-nl/python-formio-data" description = "formio.js JSON-data API" readme = "README.md"