Borges::Dialog (Class)

In: lib/Borges/Component/Dialog/Dialog.rb
Parent: Object

A Dialog is a quick message that can be supplied to the user for them to confirm or acknowledge.

Methods

Public Class methods

Creates a Dialog with message that has a ‘Yes’ and ‘No’ button for the user to select between.

Creates a Dialog with message and an ‘OK’ button for the user to click.

Creates a new Dialog with message.

Public Instance methods

Creates an answer button labeled label that will invoke block when clicked.

Renders this component, adding all the actions specified with on_answer as submit buttons.

[Validate]