Package 'shinypanels'

Title: Shiny Layout with Collapsible Panels
Description: Create 'Shiny Apps' with collapsible vertical panels. This package provides a new visual arrangement for elements on top of 'Shiny'. Use the expand and collapse capabilities to leverage web applications with many elements to focus the user attention on the panel of interest.
Authors: Juan Pablo Marin Diaz [aut, cre]
Maintainer: Juan Pablo Marin Diaz <[email protected]>
License: MIT + file LICENSE
Version: 0.5.1
Built: 2025-03-11 04:30:53 UTC
Source: https://github.com/datasketch/shinypanels

Help Index


Box like component

Description

Box like component

Usage

box(..., title = NULL, collapsed = TRUE, color = "")

Arguments

...

html list contents for the panel

title

title for the box

collapsed

defines initial state

color

color name as defined in custom css

Value

None

Examples

box()

Infomessage to show messages

Description

Infomessage to show messages

Usage

infomessage(..., type = "warning", id = NULL, class = NULL)

Arguments

...

html list contents for the panel

type

one of: warning, success, error or info

id

id of html element

class

class of html element

Value

None

Examples

infomessage()

Text with tooltip

Description

Text with tooltip

Usage

infoTooltip(
  title,
  info,
  icon = "info-circle",
  containerStyle = "",
  iconStyle = "",
  tooltipStyle = ""
)

Arguments

title

Text

info

Message which appears when a cursor is positioned over an icon

icon

HTML name of icon

containerStyle

CSS styles for the container div

iconStyle

CSS styles for the icon

tooltipStyle

CSS styles for the tooltip

Value

None

Examples

infoTooltip("Information", info = "This a content of tooltip", icon = "cloud")

Modal button to trigger a modal

Description

Modal button to trigger a modal

Usage

modalButton(modal_id = NULL, label = NULL, id = NULL)

Arguments

modal_id

modal id to be triggered by the button

label

label for the button

id

html attribute id for the button

Value

None

Examples

modal()

Panel component for shiny panels layout

Description

Panel component for shiny panels layout

Usage

panel(
  head = NULL,
  body = NULL,
  footer = NULL,
  title = NULL,
  header_right = NULL,
  color = "malibu",
  id = NULL,
  collapsed = FALSE,
  can_collapse = TRUE,
  width = NULL,
  hidden = FALSE,
  ...
)

Arguments

head

html for the panel header

body

html tag list for panel body contents

footer

footer contents

title

panel title

color

color name as defined in custom css

id

panel div id

collapsed

panel starts as collapsed

width

panel width in pixels

...

html list contents for the panel

show_footer

include footer

Value

None

Examples

panel(title = "My title")

Shiny panels layout

Description

Shiny panels layout

Usage

panelsPage(..., styles = "", header = NULL, title = NULL, debug = FALSE)

Arguments

...

html list contents for the panel

styles

custom css styles

header

html list with custom header

title

Title html page attribute

debug

Used for debugging layout html

Value

None

Examples

panelsPage()

Top bar component for shiny panels layout

Description

Top bar component for shiny panels layout

Usage

topbar(..., title = NULL, image = NULL, background_color = NULL)

Arguments

...

html list contents for the panel

title

Top bar panel

image

Logo image

background_color

background color for top bar

Value

None

Examples

topbar()