<# var choice = option_value, index = 0, icons = 'undefined' !== typeof FusionApp && 'undefined' !== typeof param.icons ? param.icons : ''; #> <# if ( 'undefined' !== typeof choice && '' !== choice && null !== choice ) { #> <# var choices = ( Array.isArray( choice ) ) ? choice : choice.split( ',' ); #> <# } else { #> <# var choices = ''; #> <# } #> <# _.each( param.value, function( name, value ) { #> <# index++; var selected = ( jQuery.inArray( value, choices ) > -1 ) ? ' ui-state-active' : '', icon = ( 'undefined' !== typeof icons[ value ] && '' !== icons ) ? icons[ value ] : '', title = name, iconClass = '' === icon ? '' : 'has-tooltip'; if ( -1 !== icon.indexOf( 'svg' ) || -1 !== icon.indexOf( 'span' ) ) { title = icon; } else if ( -1 !== name.indexOf( 'span' ) && -1 !== name.indexOf( '|' ) ) { // Exception for visibility options. title = name.split( '|' ); name = title[1]; title = title[0] iconClass += ' has-tooltip'; } else if ( '' !== icon ) { iconClass += ' ' + icon; title = ''; } #> {{{ title }}} <# }); #>