Fluffy.Dialog (Fluffy v0.1.1)

Copy Markdown View Source

A normalized browser dialog and the action Fluffy took to unblock it.

Summary

Types

action()

@type action() :: :accept | :dismiss | nil

dialog_type()

@type dialog_type() :: :alert | :beforeunload | :confirm | :prompt | String.t()

t()

@type t() :: %Fluffy.Dialog{
  action: action(),
  default_value: String.t(),
  message: String.t(),
  prompt_text: String.t() | nil,
  type: dialog_type()
}