Last active
April 8, 2023 19:20
-
-
Save naturalwarren/202bbb63acbc83a1e51c6952d95f17d9 to your computer and use it in GitHub Desktop.
SDUI Row With Compatibility
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 Row(UIComponent): | |
title: str | |
subtitle: Optional[str] = None | |
@classmethod | |
def component_type(cls) -> ComponentType: | |
return ComponentType.BUTTON | |
@classmethod | |
def platform_compatibility(cls) -> Dict[Platform, Version]: | |
return { | |
Platform.IOS: Version("2021.49.0"), | |
Platform.ANDROID: Version("2021.50.0"), | |
Platform.WEB: Version("2021.47.0"), | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment