Skip to contents

This function draws the history as a vertical list of steps. The newest step is at the end. The rail shows the current position. A click on a step moves to that step. The rail gets its data from the server. You thus do not have to write a render function.

Usage

rewind_ui(label = "History", max_height = "20rem", class = NULL)

Arguments

label

The heading above the rail. Use NULL for no heading.

max_height

The CSS height at which the rail starts to scroll.

class

More CSS classes for the container element.

Examples

rewind_ui()
#> <div class="rewind-rail-wrap">
#>   <div class="rewind-rail-title">History</div>
#>   <ol class="rewind-rail" style="max-height: 20rem;"></ol>
#> </div>
rewind_ui(label = "Steps", max_height = "12rem")
#> <div class="rewind-rail-wrap">
#>   <div class="rewind-rail-title">Steps</div>
#>   <ol class="rewind-rail" style="max-height: 12rem;"></ol>
#> </div>