-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
Coming from here.
I'm wondering whether there is a way to extract the HTML text ("mylabel" in the example below) from a tag via {htmltools}.
Currently the following
library(htmltools)
library(shiny)
tagQuery(actionButton(
inputId = "myid",
label = "mylabel",
icon = icon("home")
))$children()
results in:
`$allTags()`:
<button id="myid" type="button" class="btn btn-default action-button">
<i class="fas fa-house" role="presentation" aria-label="house icon"></i>
<span class="shiny-icon-separator"></span>
mylabel
</button>
Error in (function (el, i) :
`setSelected(selected=)` received a list item at position `3` that was not a tag environment
Related:
Metadata
Metadata
Assignees
Labels
No labels