Examples.EViews (gt_bridge v0.17.3)

Copy Markdown View Source

I am examples for the Phlow view system. I also define a sample struct with two views to exercise view registration and rendering.

Summary

Types

t()

@type t() :: %Examples.EViews{int: integer(), name: String.t()}

Functions

copy(item)

Callback implementation for ExExample.Behaviour.copy/1.

empty()

@spec empty() :: t()

empty_view()

@spec empty_view() :: pid()

int_list_view(self, builder)

@spec int_list_view(t(), GtBridge.Phlow.Builder) :: GtBridge.Phlow.List.t()

int_list_view_ref()

@spec int_list_view_ref() :: {Examples.EViews, :int_list_view}

name_text_view(self, builder)

@spec name_text_view(t(), GtBridge.Phlow.Builder) :: GtBridge.Phlow.Text.t()

name_text_view_ref()

@spec name_text_view_ref() :: {Examples.EViews, :name_text_view}

register_views()

@spec register_views() :: pid()

rerun?(_)

Callback implementation for ExExample.Behaviour.rerun?/1.

test_get_view_specs()

@spec test_get_view_specs() :: :ok

with_values(int_value, name_value)

@spec with_values(integer(), String.t()) :: t()