class

Opal::UI::AsyncMarkdownViewer

Inherits Opal::UI::Element < Opal::UI::Themable < Reference < Object

Async Markdown Viewer that displays an animated throbber until markdown string is ready

Constructors

new(label : String = "Loading markdown...", width : Int32 = 80, scrollable : Bool = true, auto_scroll : Bool = false, scroll_speed : Float64 = 1.0, &block : -> String)
Source

Instance methods

auto_scroll=(auto_scroll : Bool)
Source
auto_scroll?
Source
handle_key(key : Terminal::KeyEvent) : Bool
Source
handle_mouse(event : Terminal::MouseEvent) : Bool
Source
label
Source
label=(label : String)
Source
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
Source
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
Source
resolved=(resolved : Bool)
Source
resolved?
Source
scroll_speed
Source
scroll_speed=(scroll_speed : Float64)
Source
scrollable=(scrollable : Bool)
Source
scrollable?
Source
spinner_frame
Source
spinner_frame=(spinner_frame : Int32)
Source
tick(dt : Float64 = 0.0166) : Nil
Source
viewer
Source
viewer=(viewer : MarkdownViewer | Nil)
Source
width
Source
width=(width : Int32)
Source