View Source ExSni.Menu (ExSNI v0.2.9)

Link to this section Summary

Link to this section Types

Specs

callback() :: {atom(), fn_callback()}

Specs

fn_callback() :: (... -> any())

Specs

t() :: %ExSni.Menu{
  __ref__: ExSni.Ref.t() | nil,
  callbacks: [callback()],
  icon_theme_path: [String.t()],
  item_cache: map(),
  last_id: non_neg_integer(),
  root: ExSni.Menu.Item.t(),
  status: String.t(),
  text_direction: String.t(),
  version: integer()
}

Link to this section Functions

Link to this function

get_group_properties(menu, ids, properties)

View Source
Link to this function

get_group_properties_per_item(menu, mapping)

View Source
Link to this function

get_layout(menu, depth, properties)

View Source

Specs

get_layout(t(), integer(), [String.t()]) ::
  {:ok, list(), list()} | {:error, binary(), binary()}
Link to this function

get_layout(arg1, parentId, depth, properties)

View Source

Specs

get_layout(t(), non_neg_integer(), integer(), [String.t()]) ::
  {:ok, list(), list()} | {:error, binary(), binary()}

Specs

onAboutToShow(t(), id :: non_neg_integer()) :: boolean()
Link to this function

onEvent(menu, eventId, id, data, timestamp)

View Source

Specs

onEvent(
  t(),
  eventId :: String.t(),
  menuId :: non_neg_integer(),
  data :: any(),
  timestamp :: any()
) :: any()