windowCard {r2resize}R Documentation

Resizable Moveable Expandable Window Card

Description

Easily expandable and resizable content container holder

Usage

windowCard(
  ...,
  title = "Sample title",
  width = "50%",
  bg.color = NULL,
  border.color = NULL,
  header.text.color = NULL,
  body.text.color = NULL
)

Arguments

...

content of the container

title

title of the header

width

width of the container

bg.color

background color of the content area

border.color

color of the container border

header.text.color

color of the header text

body.text.color

color of the content text

Value

A window-like card container that is expandable and resizable

Examples for r2resize

More examples and demo pages are located at this link - https://rpkg.net/package/r2resize.

Note

Please note that only one windowCard may be created by page

Examples

#simple window card with default attributes
#shows up centered on the screen
r2resize::windowCard("sample r2symbols text")


#specify the width of the window card
#specify the title
#specify the header color
#speciy other features
r2resize::windowCard(
title = "Sample Window card",
width = "500px",
bg.color = "white",
border.color = "brown",
header.text.color = "white",
body.text.color = "black")


[Package r2resize version 1.9 Index]