Ember.streams.Dependency.classStringForValue()

classStringForValue (path, val, className, falsyClassName) privatestatic

Defined in packages/ember-htmlbars/lib/streams/class_name_binding.js:53

Get the class name for a given value, based on the path, optional className and optional falsyClassName.

  • if a className or falsyClassName 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 true, the dasherized last part of the supplied path is returned
  • if the value is not false, undefined or null, the value is returned
  • if none of the above rules apply, null is returned

Parameters:

path
val
className
falsyClassName
doc_EmberJs
2016-11-30 16:51:45
Comments
Leave a Comment

Please login to continue.