Examples for 'htmltools::tagAppendChild'


Modify tag contents

Aliases: tagAppendChild tagAppendChildren tagSetChildren tagInsertChildren

Keywords:

### ** Examples

html <- div(a(), h1())
tagAppendChild(html, span())

tagAppendChild(html, .cssSelector = "a", span())

tagAppendChildren(html, span(), p())

tagAppendChildren(html, .cssSelector = "a", span(), p())

tagSetChildren(html, span(), p())

tagInsertChildren(html, after = 1, span(), p())


[Package htmltools version 0.5.8.1 Index]