Skip to content

Instantly share code, notes, and snippets.

@naturalwarren
Last active April 8, 2023 19:20
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/202bbb63acbc83a1e51c6952d95f17d9 to your computer and use it in GitHub Desktop.
Save naturalwarren/202bbb63acbc83a1e51c6952d95f17d9 to your computer and use it in GitHub Desktop.
SDUI Row With Compatibility
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