barRating: jQuery Bar Rating

Description Usage Arguments

Description

create a barRating htmlwidget

Usage

1
2
3
4
5
barRating(choices, theme = "bars-1to10", initialRating = NULL,
  showValues = FALSE, showSelectedRating = TRUE, deselectable = TRUE,
  reverse = FALSE, readonly = FALSE, fastClicks = TRUE,
  hoverState = TRUE, silent = FALSE, selected = NULL,
  includeEmpty = FALSE)

Arguments

choices

Vector of values to select from.

theme

Name of a theme.

initialRating

Specify initial rating by passing select field's option value.

showValues

If set to true, rating values will be displayed on the bars.

showSelectedRating

If set to true, user selected rating will be displayed next to the widget.

deselectable

If set to true, user can deselect a rating. For this feature to work the select field must contain a first option with an empty value.

reverse

If set to true, the ratings will be reversed.

readonly

If set to true, the ratings will be read-only.

fastClicks

Remove 300ms click delay on touch devices.

hoverState

Change state on hover.

silent

Supress callbacks when controlling ratings programatically.

selected

Specify initial rating.

includeEmpty

Include an empty rating.


harveyl888/barRating documentation built on May 17, 2019, 3:04 p.m.