button_geoloc: Geolocation button

Description Usage Arguments Value Examples

View source: R/geoloc.R

Description

Geolocation button

Usage

1
button_geoloc(inputId, label, icon = NULL, width = NULL, ...)

Arguments

inputId

The input slot that will be used to access the value.

label

The contents of the button or link–usually a text label, but you could also use any other HTML, like an image.

icon

An optional icon() to appear on the button.

width

The width of the input, e.g. '400px', or '100%'; see validateCssUnit().

...

Named attributes to be applied to the button or link.

Value

The user geolocation

Examples

1
2
3
4
library(shiny)
ui <- fluidPage(
  button_geoloc("foo", "bar")
)

ColinFay/geoloc documentation built on Nov. 27, 2019, 3:15 a.m.