Create an jQuery UI pre-defined icon. For lists of available icons, see https://api.jqueryui.com/theming/icons/.
Arguments
- name
Class name of icon. The "ui-icon-" prefix can be omitted (i.e. use "ui-icon-flag" or "flag" to display a flag icon)
Examples
jqui_icon('caret-1-n')
#> <i class="ui-icon ui-icon-caret-1-n"></i>
library(shiny)
# add an icon to an actionButton
actionButton('button', 'Button', icon = jqui_icon('refresh'))
#> <button id="button" type="button" class="btn btn-default action-button">
#> <i class="ui-icon ui-icon-refresh"></i>
#> Button
#> </button>
# add an icon to a tabPanel
tabPanel('Help', icon = jqui_icon('help'))
#> <div class="tab-pane" title="Help" data-value="Help" data-icon-class="ui-icon ui-icon-help"></div>