<# const hasDate = undefined !== param.date ? param.date : true; const hasTime = undefined !== param.time ? param.time : true; if ( 'undefined' !== typeof FusionApp ) { #> <# var value = ( '' !== option_value ) ? option_value.split( ' ' ) : '', date = ( '' !== value ) ? value[0] : '' time = ( '' !== value ) ? value[1] : ''; const hasDate = undefined !== param.date ? param.date : true; const hasTime = undefined !== param.time ? param.time : true; let pickerClass = ''; if ( !hasDate || !hasTime ) { pickerClass = 'one-column'; date = option_value; time = option_value; } #>
<# if( hasDate ) { #>
<# } #> <# if( hasTime ) { #>
<# } #>
<# } else { let icon = 'fusiona-calendar-plus-o'; let type = 'full-picker'; // time only if ( !hasDate ) { icon = 'fusiona-clock'; type = 'time-picker'; } // date only if ( !hasTime ) { format = 'yyyy-MM-dd'; type = 'date-picker'; } #>
<# } #>