class Topia::Spinner

Defined in:

topia/spinner.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(message : String = "") #

Initialize a spinner with a message


[View source]

Instance Method Detail

def error(msg : String) #

Stop the spinner and show msg in red with ✗ prepended


[View source]
def message=(msg : String) #

[View source]
def start(msg : String = "") #

Show the spinner


[View source]
def stop(msg : String) #

Stop the spinner ans show msg as provided


[View source]
def success(msg : String) #

Stop the spinner and show msg in green with ✓ prepended


[View source]