Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Add `AtomicFusion.classNames` eel-helper

Choose a tag to compare

@mficzel mficzel released this 26 Jul 08:48
· 12 commits to master since this release

all arguments of the AtomicFusion.classNames-eelHelper are evaluated
and the following rules are applied:

  • falsy: (null, '', [], {}) -> not rendered
  • array: all items that are scalar and truthy are rendered as className
  • object: keys that have a truthy values are rendered as className
  • scalar: is cast to string and rendered as className