Skip to content

Instantly share code, notes, and snippets.

@naturalwarren
Last active April 18, 2023 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naturalwarren/43ef6d4bfbcde8e1a1fd4457144d3b5a to your computer and use it in GitHub Desktop.
Save naturalwarren/43ef6d4bfbcde8e1a1fd4457144d3b5a to your computer and use it in GitHub Desktop.
Augmented SDUI DataRow
class DataRow(UIComponent):
title: str
subtitle: str
layout: Layout = Layout.HORIZONTAL
title_hyperlink: Optional[Url] = None
accessory_view = Optional[UIComponent] = None
@classmethod
def component_type(cls) -> ComponentType:
return ComponentType.DATA_ROW_STACKED
class Layout(str, Enum):
VERTICAL = “VERTICAL”
HORIZONTAL = “HORIZONTAL”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment