Skip to contents

Links diferent bindings to the given tag. For all list arguments, instead of a name = value pair, a simple string can be used instead if name and value are the same. Both long and short versions of the attributes can be used.

Usage

tagAppendBinds(
  tag,
  fromShinyProperty = NULL,
  fsProperty = NULL,
  fromShinyStyle = NULL,
  fsStyle = NULL,
  fromShinyAttribute = NULL,
  fsAttribute = NULL,
  fromShinyClass = NULL,
  fsClass = NULL,
  toShinyProperty = NULL,
  tsProperty = NULL,
  toShinyStyle = NULL,
  tsStyle = NULL,
  toShinyAttribute = NULL,
  tsAttribute = NULL,
  toShinyClass = NULL,
  tsClass = NULL,
  toShinyEvent = NULL,
  tsEvent = NULL
)

Arguments

tag

html fragment to add attributes to.

fromShinyProperty

Named list where the name is the JS property to update and the value the corresponding named argument used in the updateWebComponent or as part of the initial component state.

fsProperty

Short hand version of the previous argument.

fromShinyStyle

Named list where the name is the css property to update and the value the corresponding named argument used in the updateWebComponent or as part of the initial component state.

fsStyle

Short hand version of the previous argument.

fromShinyAttribute

Named list where the name is the css property to update and the value the corresponding named argument used in the updateWebComponent or as part of the initial component state.

fsAttribute

Short hand version of the previous argument.

fromShinyClass

Named list where the name is the class to update and the value the corresponding named argument used in the updateWebComponent or as part of the initial component state.

fsClass

Short hand version of the previous argument.

toShinyProperty

Named list where the name is the JS property to get and the value the corresponding named attribute that can be read using input$inputId or directly via input$inputId_attribute.

tsProperty

Short hand version of the previous argument.

toShinyStyle

Named list where the name is the css property to get and the value the corresponding attribute that can be read using input$inputId or directly via input$inputId_attribute.

tsStyle

Short hand version of the previous argument.

toShinyAttribute

Named list where the name is the HTML attribute to get and the value the corresponding attribute that can be read using input$inputId or directly via input$inputId_attribute.

tsAttribute

Short hand version of the previous argument.

toShinyClass

Named list where the name is the class to get and the value the corresponding named attribute that can be read using input$inputId or directly via input$inputId_attribute.

tsClass

Short hand version of the previous argument.

toShinyEvent

Named list where the name is the HTML event to trigger an update and the value the corresponding named attribute that can be read using input$inputId or directly via input$inputId_attribute.

tsEvent

Short hand version of the previous argument.

Value

a HTML tag that can be added to the page.