Skip to content

Commit

Permalink
Add dataSrc getter (property) in selectboxesComponent.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslee committed May 24, 2024
1 parent a5ea234 commit c501ab6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.\
Expand Down
4 changes: 4 additions & 0 deletions formiodata/components/selectboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit c501ab6

Please sign in to comment.