class

Tui::Link

Inherits Tui::Widget / Tui::Reactive / Reference / Object

Constructors

new(text : String, url : String = "", id : String | Nil = nil)
Source

Instance methods

activate

Activate the link

Source
hover_style
Source
hover_style=(hover_style : Style)
Source
min_size
Source
on_click

Callback when link is activated

Source
on_event(event : Event) : Bool

Override to handle events for this widget (target/bubble phase) Called after children have had a chance to handle the event

Source
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source
style
Source
style=(style : Style)
Source
text
Source
text=(text : String)
Source
url=(url : String)
Source
visited=(value : Bool) : Nil
Source
visited?

Mark as visited

Source
visited_style
Source
visited_style=(visited_style : Style)
Source