Skip to content

Commit

Permalink
Switch: improve designer api support
Browse files Browse the repository at this point in the history
  • Loading branch information
s-cork committed Oct 28, 2023
1 parent ff86727 commit 47e33e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client_code/Switch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ def text_post(self, value):

_anvil_properties_ = _prop_descriptions

def _anvil_get_interactions_(self):
return []

def _anvil_get_design_info_(self, *args, **kws):
design_info = super()._anvil_get_design_info_(*args, **kws)
prop_key = (
Expand All @@ -203,4 +206,5 @@ def _anvil_get_design_info_(self, *args, **kws):
)
props = design_info.get(prop_key, [])
design_info[prop_key] = _clean_props(props)
design_info["interactions"] = []
return design_info

0 comments on commit 47e33e9

Please sign in to comment.