Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

socialButton

AdminLTE2 social button


Description

Create a social button

Usage

socialButton(href, icon)

Arguments

href

External link.

icon

social network icon: see here for valid names https://adminlte.io/themes/AdminLTE/pages/UI/buttons.html.

Author(s)

David Granjon, dgranjon@ymail.com

Examples

if (interactive()) {
 library(shiny)
 library(shinydashboard)
 library(shinydashboardPlus)
 
 shinyApp(
  ui = dashboardPage(
    dashboardHeader(),
    dashboardSidebar(),
    dashboardBody(
     box(
      title = "Social Buttons",
      status = NULL,
      socialButton(
        href = "https://dropbox.com",
        icon = icon("dropbox")
      ),
      socialButton(
        href = "https://github.com",
        icon = icon("github")
      )
     )
    ),
    title = "Social Buttons"
  ),
  server = function(input, output) { }
 )
}

shinydashboardPlus

Add More 'AdminLTE2' Components to 'shinydashboard'

v2.0.1
GPL (>= 2) | file LICENSE
Authors
David Granjon [aut, cre], RinteRface [cph], Almasaeed Studio [ctb, cph] (AdminLTE2 theme for Bootstrap 3), Guang Yang [ctb, cph] (ygdashboard original template), Winston Chang [ctb, cph] (Functions from shinydashboard), Victor Perrier [ctb] (improved the shinydashboardPlusGallery)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.