Class: RubyRich::ConfirmDialog

Inherits:
Dialog
  • Object
show all
Defined in:
lib/ruby_rich/dialog.rb

Overview

确认对话框

Instance Attribute Summary

Attributes inherited from Dialog

#buttons, #content, #title

Instance Method Summary collapse

Methods inherited from Dialog

#show

Constructor Details

#initialize(title: "确认", content: "确定要执行此操作吗?") ⇒ ConfirmDialog

Returns a new instance of ConfirmDialog.



84
85
86
87
88
89
90
# File 'lib/ruby_rich/dialog.rb', line 84

def initialize(title: "确认", content: "确定要执行此操作吗?")
  super(
    title: title,
    content: content,
    buttons: ["取消", "确定"]
  )
end