Dojo NG is being built in the open, one section at a time — follow along on Heptapod.

API REFERENCE · FORM CONTROLS

<dj-rate>

Star rating (0..max). Form-associated. (Half-step allowHalf accepted; full-star core.)

Try it in the playground

@dojo-ng/rate · v0.1.2

npm install @dojo-ng/rate

import "@dojo-ng/rate";

Properties

PropertyAttributeTypeDefault
max max number 5
value value number 0
allowHalf allow-half boolean false
readonly readonly boolean false
name name reflected string None
label label string None

Events

change

CSS custom properties

PropertyDefaultDescription
--dj-rate-size1.5remSize of one star.

Methods

checkValidity()restoreFormState(state: File | string | FormData | null)