class

Opal::UI::MarkdownElement

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

Markdown Element / Viewer for use inside UI trees with interactive scrolling

Constructors

new(content : String, width : Int32 = 80, scrollable : Bool = true, auto_scroll : Bool = false, scroll_speed : Float64 = 1.0)
Source

Instance methods

auto_scroll=(auto_scroll : Bool)
Source
auto_scroll?
Source
content
Source
content=(new_content : String)
Source
handle_key(key : Terminal::KeyEvent) : Bool
Source
handle_mouse(event : Terminal::MouseEvent) : Bool
Source
lines
Source
page_down(lines_count : Int32 | Nil = nil) : Nil
Source
page_up(lines_count : Int32 | Nil = nil) : Nil
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
rendered
Source
scroll_down(lines_count : Int32 = 1) : Nil
Source
scroll_offset
Source
scroll_offset=(scroll_offset : Int32)
Source
scroll_speed
Source
scroll_speed=(scroll_speed : Float64)
Source
scroll_to_bottom
Source
scroll_to_top
Source
scroll_up(lines_count : Int32 = 1) : Nil
Source
scrollable=(scrollable : Bool)
Source
scrollable?
Source
set_content(new_content : String, width : Int32 = 80)
Source
tick(dt : Float64 = 0.0166) : Nil
Source
visible_height
Source
visible_height=(visible_height : Int32)
Source