Skip to contents

A shiny module that contains the UI and server logic for a single row (or a single set of coordinates) of a custom score.

Usage

custom_row_ui(id, n, x = 0, y = 0)

custom_row_server(id)

Arguments

id

The namespace of the module.

n

The row number - unique for every row.

x

The initial value of the x coordinate.

y

The initial value of the y coordinate.

Value

The server returns a tibble::tibble_row() containing the x and y coordinates.

Details

Note that the row number (n) may not reflect the actual position of the row within the app. As an example, consider three rows (n is 1, 2 and 3 respectively). If the second row is deleted, since the UI is not changed, the row which will now be second will have a row number of 3.