<# var atts = '', field = data.field, name = data.name, value = data.value; // Multiselect? if ( field['multi-select'] ) { atts += ' multiple'; name += '[]'; } // Class if ( field.className ) { atts += ' class="' + field.className + '"'; } // Toggle data if ( field.toggle ) { atts += " data-toggle='" + JSON.stringify( field.toggle ) + "'"; } // Hide data if ( field.hide ) { atts += " data-hide='" + JSON.stringify( field.hide ) + "'"; } // Trigger data if ( field.trigger ) { atts += " data-trigger='" + JSON.stringify( field.trigger ) + "'"; } // Referenced Option Sets - See FLBuilderConfig.optionSets if ( ( Array.isArray( field.options ) && field.options.length === 1 ) || 'string' === typeof field.options ) { var optionSetName = Array.isArray( field.options ) ? field.options[0] : field.options ; if ( 'undefined' !== typeof optionSetName ) { var optionSet = FLBuilderConfig.optionSets[optionSetName]; if ( 'undefined' !== typeof optionSet ) { field.options = optionSet; } } } #>