Create a butler.

Details

Create an object to show a loading bar to display at the top of the application.

Methods

Public methods


Method new()

Usage

Butler$new(
  thickness = 5,
  colors = list(`0` = "red", `.3` = "blue", `1` = "green"),
  shadow_blur = 5,
  shadow_color = "rgba(0, 0, 0, .5)"
)

Arguments

thickness

Thickness of the bar.

colors

List of gradient color stops used to draw the progress bar.

shadow_blur

Shadow blur size.

shadow_color

Shadow color.

Details

Create a butler.

Examples

\dontrun{Butler$new()}


Method show()

Usage

Butler$show()

Details

Show the butler.

Examples

\dontrun{Butler$new()$show()}


Method print()

Usage

Butler$print()

Details

print the butler


Method hide()

Usage

Butler$hide()

Details

Hide the butler.

Examples

\dontrun{Butler$new()$show()$hide()}


Method clone()

The objects of this class are cloneable with this method.

Usage

Butler$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

## ------------------------------------------------ ## Method `Butler$new` ## ------------------------------------------------ if (FALSE) Butler$new() ## ------------------------------------------------ ## Method `Butler$show` ## ------------------------------------------------ if (FALSE) Butler$new()$show() ## ------------------------------------------------ ## Method `Butler$hide` ## ------------------------------------------------ if (FALSE) Butler$new()$show()$hide()