Wijmo Tests

by ecropolis

HTML

<link rel="stylesheet" href="http://cdn.wijmo.com/themes/aristo/jquery-wijmo.css">
<link rel="stylesheet" href="http://cdn.wijmo.com/jquery.wijmo-complete.all.2.1.0.min.css">
<script src="http://cdn.wijmo.com/jquery.wijmo-open.all.2.1.0.min.js"></script>
<script src="http://cdn.wijmo.com/jquery.wijmo-complete.all.2.1.0.min.js"></script>
<input class="form-control" name="wijcombotest" id="wijcombotest">
    <br>
    <a id="enable">enable</a>

JavaScript

options = [{label:'this_is_a_somewhat_long_label',value:'0'}];

$('#wijcombotest').wijcombobox({
    disabled: true,
    dropdownWidth: 'fit',
    select: function(e,selectdata) {
     debug.log('===== Selected an Macro Assumption: value--> ['+selectdata.value+'] -|- Label--> ['+selectdata.label+'] =====')
     $macrostatus.empty();
     wizard.postdata['macroAssumption.id'] = selectdata.value;
     wizard.postdata.macroAssumptionSelector = 'UserMacro'; 
     wizard.postdata._macroAssumptionSelector = 'on';
     isInRun(wizard.getMacroAssump_data.info,selectdata.value);

     if($('#add-new-macro-form').not(':visible'))
             wizard.nextbutton.removeClass('disabled');
    },
    data: options
  });

$('#enable').on('click',function(){
    $('#wijcombotest').wijcombobox('option','disabled',false);
});