lib/views/glimmer/gladiator/gladiator_menu_bar.rb
# Method-based error_dialog custom widget
Method-based error_dialog custom widget
Method - based error_dialog custom widget
def error_dialog(message:)
        return if message.nil?
        dialog(gladiator) { |dialog_proxy|
          row_layout(:vertical) {
            center true
          }
          text 'Error Launching'
          styled_text(:border, :h_scroll, :v_scroll) {
            layout_data {
              width gladiator.bounds.width*0.75
              height gladiator.bounds.height*0.75
            }
            text message
            editable false
            caret nil
          }
          button {
            text 'Close'
            on_widget_selected {
              dialog_proxy.close
            }
          }
        }
      end
def error_dialog ( message : ) return if message . nil? dialog ( gladiator ) { | dialog_proxy | row_layout ( :vertical ) { center true } text 'Error Launching' styled_text ( :border , :h_scroll , :v_scroll ) { layout_data { width gladiator . bounds . width * 0.75 height gladiator . bounds . height * 0.75 } text message editable false caret nil } button { text 'Close' on_widget_selected { dialog_proxy . close } } } end
Method-based error_dialog custom widget
Method - based error_dialog custom widget
message
<not_specific>