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
classNameorfalsyClassNamehas been specified:- if the value is truthy and
classNamehas been specified,classNameis returned - if the value is falsy and
falsyClassNamehas been specified,falsyClassNameis returned - otherwise
nullis 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,undefinedornull, thevalueis returned - if none of the above rules apply,
nullis returned
Parameters:
- path
- val
- className
- falsyClassName
Please login to continue.