GtBridge.Phlow.View (gt_bridge v0.17.1)

Copy Markdown View Source

A Phlow view specification that wraps a specific view type (list, text, etc.) with common properties like title and priority.

Summary

Functions

Convert the view to a dictionary format for serialization to GT.

Types

t()

@type t() :: %GtBridge.Phlow.View{
  priority: integer(),
  title: String.t(),
  view_spec: any() | nil
}

Functions

as_dict(self)

@spec as_dict(t()) :: map()

Convert the view to a dictionary format for serialization to GT.