Current section

Files

Jump to
phoenix_storybook lib phoenix_storybook events event_log.ex
Raw

lib/phoenix_storybook/events/event_log.ex

defmodule PhoenixStorybook.Events.EventLog do
@moduledoc false
# Data structure for event logs displayed in each story's playground
@type t :: %__MODULE__{
type: :live_view | :component,
parent_pid: pid(),
view: atom(),
event: binary(),
params: map(),
assigns: map(),
time: Time.t()
}
defstruct [:type, :parent_pid, :view, :event, :params, :assigns, :time, id: nil]
end