Skip to content

Instantly share code, notes, and snippets.

@naturalwarren
Last active April 8, 2023 19:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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