Last active
April 18, 2023 23:13
-
-
Save naturalwarren/43ef6d4bfbcde8e1a1fd4457144d3b5a to your computer and use it in GitHub Desktop.
Augmented SDUI DataRow
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
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