AlmondCSS | R Documentation |
A ...
classless::Classless
-> AlmondCSS
new()
Create a new Almond.CSS object
AlmondCSS$new()
A new AlmondCSS
object
createPage()
Create a page with Almond.CSS
AlmondCSS$createPage(..., title = NULL, lang = NULL)
...
The contents of the document body
title
The browser window title (defaults to the host URL of the page)
lang
ISO 639-1 language code for the HTML page
textInput()
Create an input control for entry of unstructured text values
AlmondCSS$textInput( input_id, label, value = "", placeholder = "", inline = FALSE )
input_id
The input
slot that will be used to access the value.
label
Display label for the control
value
Initial value
placeholder
A character string giving the user a hint as to what can be entered into the control
inline
Logical, whether the component is in-line with sibling elements
A text input control that can be added to a UI definition
passwordInput()
Create an password control for entry of passwords
AlmondCSS$passwordInput( input_id, label, value = "", placeholder = "", inline = FALSE )
input_id
The input
slot that will be used to access the value.
label
Display label for the control
value
Initial value
placeholder
A character string giving the user a hint as to what can be entered into the control
inline
Logical, whether the component is in-line with sibling elements
A password input control that can be added to a UI definition
textAreaInput()
Create a textarea input control for entry of unstructured text values
AlmondCSS$textAreaInput( input_id, label, value = "", placeholder = "", inline = FALSE )
input_id
The input
slot that will be used to access the value.
label
Display label for the control
value
Initial value
placeholder
A character string giving the user a hint as to what can be entered into the control
inline
Logical, whether the component is in-line with sibling elements
A textarea input control that can be added to a UI definition
numericInput()
Create a numeric input control for entry of unstructured text values
AlmondCSS$numericInput( input_id, label, value = "", min = NULL, max = NULL, placeholder = "", inline = FALSE )
input_id
The input
slot that will be used to access the value.
label
Display label for the control
value
Initial value
min
Minimum valid value
max
Maximum valid value
placeholder
A character string giving the user a hint as to what can be entered into the control
inline
Logical, whether the component is in-line with sibling elements
A numeric input control that can be added to a UI definition
dateInput()
Create a date input control for entry of unstructured text values
AlmondCSS$dateInput( input_id, label, value = "", min = NULL, max = NULL, placeholder = "", inline = FALSE )
input_id
The input
slot that will be used to access the value.
label
Display label for the control
value
Initial value
min
Minimum valid value
max
Maximum valid value
placeholder
A character string giving the user a hint as to what can be entered into the control
inline
Logical, whether the component is in-line with sibling elements
A date input control that can be added to a UI definition
selectInput()
Create a select list that can be used to choose a single or multiple items from a list of values
AlmondCSS$selectInput( input_id, label, choices, selected = NULL, multiple = FALSE, inline = FALSE )
input_id
The input
slot that will be used to access the value.
label
Display label for the control
choices
List of values to select from
selected
The initially selected value (or multiple values if multiple = TRUE
).
multiple
Is selection of multiple items allowed?
inline
Logical, whether the component is in-line with sibling elements
A select list control that can be added to a UI definition
almondInput()
Almond.css adds a couple of tags to inputs that some classless inputs don't have
AlmondCSS$almondInput(input, inline = FALSE)
input
Some UI input
inline
Logical, whether the component is in-line with sibling elements
clone()
The objects of this class are cloneable with this method.
AlmondCSS$clone(deep = FALSE)
deep
Whether to make a deep clone.
<https://github.com/alvaromontoro/almond.css>
almondPage
selectCLInput Convert Classless Input to Almond.css Input
library(shiny) library(classless) almond <- AlmondCSS$new() ui <- almond$createPage( tags$header( "Almond Application" ), tags$body( tags$section( tags$h2("Contents"), tags$p("Paragraph") ), tags$section( tags$h2("Inputs"), tags$form( almond$textInput("text", "Text Input"), almond$numericInput("number", "Numeric Input") ) ) ) ) if (interactive()) { server <- function(input, output, session) {} shinyApp(ui, server) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.