时间控件 点击一下控件,然后就滚动定位到上面的页面上去了
//设置时间
var ShowTimestyle = new GC.Spread.Sheets.Style()
ShowTimestyle .cellButtons = [
{
imageType: GC.Spread.Sheets.ButtonImageType.dropdown,
command: "openDateTimePicker",
useButtonStyle: false
}
]
ShowTimestyle .dropDowns = [
{
type: GC.Spread.Sheets.DropDownType.dateTimePicker,
option: {
showTime: false
}
}
]
ShowTimestyle .vAlign = GC.Spread.Sheets.VerticalAlign.center
ShowTimestyle .hAlign = GC.Spread.Sheets.HorizontalAlign.right
ShowTimestyle .formatter = "YYYY-MM-DD"
sheet.setStyle(index, 5, ShowTimestyle )
|