Link Search Menu Expand Document

arena-py API v0.10.0


class ArenauiCard(arena.objects.arena_object.Object):

ArenauiCard object class to manage its properties in the ARENA: ARENAUI element which displays text and optionally an image.

  • str body: This is the text body of the card. (optional)
  • str bodyAlign: Body Text Alignment Allows [left, center, right, justify] Defaults to 'left' (optional)
  • bool closeButton: Show close button (optional)
  • str font: Font to use for button text. Allows [Roboto, Roboto-Mono] Defaults to 'Roboto' (optional)
  • float fontSize: Font Size Defaults to '0.035' (optional)
  • str img: This image will be embedded alongside the body text. (optional)
  • str imgCaption: This will caption the image. (optional)
  • str imgDirection: Image Direction Allows [left, right] Defaults to 'right' (optional)
  • str imgSize: Image sizing Allows [cover, contain, stretch] Defaults to 'cover' (optional)
  • str materialSides: Which sides display the rendered UI material Allows [both, front] Defaults to 'both' (optional)
  • float textImageRatio: Text to Image Width Ratio Defaults to '0.5' (optional)
  • str theme: Color Theme Allows [light, dark] Defaults to 'light' (optional)
  • str title: Title (optional)
  • float widthScale: Width scale multiplier Defaults to '1' (optional)
object_type = 'arenaui-card'
class Card(ArenauiCard):

Alternate name for ArenauiCard.