module LuckyHXML::Alert
Overview
Example:
alert_behavior trigger: "longPress", title: "This is a title", message: "This is a message" do
alert_option label: "Screen 1" do
behavior href: "/screen1", action: "push"
end
alert_option label: "Screen 2" do
behavior href: "/screen2", action: "new"
end
end
Output:
<behavior
xmlns:alert="https://hyperview.org/hyperview-alert"
trigger="longPress"
action="alert"
alert:title="This is the title"
alert:message="This is the message"
>
<alert:option alert:label="Screen 1">
<behavior href="/screen1" action="push" />
</alert:option>
<alert:option alert:label="Screen 2">
<behavior href="/screen2" action="new" />
</alert:option>
</behavior>
Direct including types
Defined in:
lucky_hxml/alert.crInstance Method Summary
-
#alert_behavior(title : String, message : String | Nil = nil, **opts, &) : Nil
Represents an alert behavior
-
#alert_behavior(title : String, message : String | Nil = nil, **opts) : Nil
Represents an alert behavior
-
#alert_namespace : Nil
Defines Hyperview Alert XML Namespace attribute
-
#alert_option(label : String, style : ButtonStyle = :default, **opts, &) : Nil
Represents an alert option
-
#alert_option(label : String, style : ButtonStyle = :default, **opts) : Nil
Represents an alert option
Instance Method Detail
Represents an alert behavior
title - The title of the alert.
message - The description of the alert. Appears under the title.
The alert can display a title, message, and between 1 and 3 labeled options. Each option has other behaviors associated with it. These associated behaviors get triggered when the user selects the corresponding option.
Represents an alert behavior
title - The title of the alert.
message - The description of the alert. Appears under the title.
The alert can display a title, message, and between 1 and 3 labeled options. Each option has other behaviors associated with it. These associated behaviors get triggered when the user selects the corresponding option.
Represents an alert option
label - The label of the alert option. Appears as a pressable button below the title and message.
Represents an alert option
label - The label of the alert option. Appears as a pressable button below the title and message.