material_tags: Material Tags (Chips)

Description Usage Arguments Examples

Description

Createa material tag element

Usage

1
2
3
4
5
material_tags(inputId, tags = list(), readonly = FALSE,
  placeholder = "", autocomplete = NULL, color = NULL, ...)

update_material_tags(inputId, addtags = NULL, deltags = NULL,
  seltags = NULL, session = shiny::getDefaultReactiveDomain())

Arguments

inputId

String.

tags

list. A list of tag elements, could have 'tag', 'icon', 'image'.

readonly

Boolean. Should the tags be readonly?

placeholder

String. A placeholder for the input text.

autocomplete

String. A list of words to autocomplete

color

String. The color name of the text input. Leave empty for 'teal lighten-1' color. Visit http://materializecss.com/color.html for a list of available colors.

...

tagList. Any additional tag list

addtags

list. Tags to be added, list of tags with elements 'tag'.

deltags

list. Tags to be deleted, list of positions

seltags

list. Tags to be selected, list of positions

session

Shiny default reactive domain.

Examples

1
2
3
4
5
6
require(materializer)
material_tags(
  inputId = "extags",
  tags = list(c(tag = "Apple", icon = "close")),
  placeholder = "BigTech Companies"
)

TuSKan/materializer documentation built on May 17, 2019, 6:35 p.m.