@Scotchester, instead of having variantWrappers and defaultWrapper properties I'm thinking of combining them into one called wrappers. If wrappers exists then I will render whatever is in markup once for each item in the wrappers array.
Each wrapper would have a class attached to it and a label that both correspond to the value in the array.
Notice that the first item is called default. You could also use an empty string if you wanted no class/label for the first item, like this: ['', mint, mocca]
@Scotchester, instead of having
variantWrappers
anddefaultWrapper
properties I'm thinking of combining them into one calledwrappers
. Ifwrappers
exists then I will render whatever is inmarkup
once for each item in thewrappers
array.Here's an example:
Would render:
Each wrapper would have a class attached to it and a label that both correspond to the value in the array.
Notice that the first item is called
default
. You could also use an empty string if you wanted no class/label for the first item, like this:['', mint, mocca]