classStringForValue (path, val, className, falsyClassName) privatestatic
Get the class name for a given value, based on the path, optional className
and optional falsyClassName
.
- if a
className
orfalsyClassName
has been specified:- if the value is truthy and
className
has been specified,className
is returned - if the value is falsy and
falsyClassName
has been specified,falsyClassName
is returned - otherwise
null
is returned
- if the value is truthy and
- if the value is
true
, the dasherized last part of the supplied path is returned - if the value is not
false
,undefined
ornull
, thevalue
is returned - if none of the above rules apply,
null
is returned
Parameters:
- path
- val
- className
- falsyClassName
Please login to continue.