ExUssd (ExUssd v0.1.8) View Source
Link to this section Summary
Link to this section Types
Specs
t() :: %ExUssd{
data: map(),
default_error: String.t(),
delimiter: {String.t(), boolean()},
error: {String.t(), boolean()},
handle: term(),
handler: (... -> any()),
menu_list:
{[
%ExUssd{
data: term(),
default_error: term(),
delimiter: term(),
error: term(),
handle: term(),
handler: term(),
menu_list: term(),
name: term(),
next: term(),
orientation: term(),
parent: term(),
previous: term(),
should_close: term(),
show_navigation: term(),
split: term(),
title: term(),
to_navigate: term(),
validation_menu: term()
}
], boolean()},
name: String.t(),
next: {map(), boolean()},
orientation: term(),
parent: %ExUssd{
data: term(),
default_error: term(),
delimiter: term(),
error: term(),
handle: term(),
handler: term(),
menu_list: term(),
name: term(),
next: term(),
orientation: term(),
parent: term(),
previous: term(),
should_close: term(),
show_navigation: term(),
split: term(),
title: term(),
to_navigate: term(),
validation_menu: term()
},
previous: {map(), boolean()},
should_close: {boolean(), boolean()},
show_navigation: {boolean(), boolean()},
split: {integer(), boolean()},
title: {String.t(), boolean()},
to_navigate: boolean(),
validation_menu:
{%ExUssd{
data: term(),
default_error: term(),
delimiter: term(),
error: term(),
handle: term(),
handler: term(),
menu_list: term(),
name: term(),
next: term(),
orientation: term(),
parent: term(),
previous: term(),
should_close: term(),
show_navigation: term(),
split: term(),
title: term(),
to_navigate: term(),
validation_menu: term()
}, boolean()}
}
Link to this section Functions
See ExUssd.Op.add/2.
See ExUssd.Op.dynamic/2.
See ExUssd.Op.goto/1.
See ExUssd.Op.new/1.
See ExUssd.Op.set/2.
defmodule MyAppWeb.Router do
use Phoenix.Router
import ExUssd
scope "/", MyAppWeb do
pipe_through [:browser]
simulate "/simulator",
menu: ExUssd.new(name: "Home", handler: MyHomeHandler),
phone_numbers: ["254700100100", "254700200200", "254700300300"]
endend