Skip to main content
cngx-src documentation

CngxRatingItemContext

Interface

projects/forms/input/rating/rating-item.directive.ts

Referenced by#

Import#

import { CngxRatingItemContext } from '@cngx/forms/input'

Description#

Typed context exposed to a *cngxRatingItem glyph template.

  • index - zero-based position of the star in the strip.
  • step - the numeric value this star commits when chosen.
  • filled - true when the rating value reaches or exceeds this star (cumulative fill, not exact-match).
  • half - true only when [allowHalf] is on and the value sits exactly half a step below this star.
  • disabled - the effective disabled state of the control.

Index#

Instance Properties#

disabled#boolean
Readonly
filled#boolean
Readonly
Readonly
index#number
Readonly
Readonly