<button id="setTime" type="button" class="btn btn-default" title="时间控件">
<img src="${ctxStatic }/define/dcs/css/images/setTime.png">
</button>
$("#setTime").click(function(){
settingTime();
});
function settingTime(){
var row = sheet.getActiveRowIndex();
var col = sheet.getActiveColumnIndex();
sheet.setCellType(row,col,new DatePickerCellType()).width(100).formatter("yyyy-MM-dd");
}
|
|