XUICalendar()

new XUICalendar()

Methods

GetBgColor() → {String}

获取背景颜色
Returns:
String

GetBgImg() → {String}

获取背景图
Returns:
String

GetBgImgRepeat() → {String}

获取背景图绘制模式
Returns:
String

GetCalendarBgColor() → {String}

获得日历背景色
Returns:
String

GetDate() → {String}

获取当前设置的日期和时间
Returns:
String

GetDateDay(strTime) → {Number}

获取当前设置的日期日
Parameters:
Name Type Description
strTime String
Returns:
Number

GetDateDayHour(strTime) → {Number}

获取当前设置的日期日的时
Parameters:
Name Type Description
strTime String
Returns:
Number

GetDateDayMin(strTime) → {Number}

获取当前设置的日期日的分
Parameters:
Name Type Description
strTime String
Returns:
Number

GetDateDaySec(strTime) → {Number}

获取当前设置的日期日的秒
Parameters:
Name Type Description
strTime String
Returns:
Number

GetDateMonth(strTime) → {Number}

获取当前设置的日期的月份
Parameters:
Name Type Description
strTime String
Returns:
Number

GetDateSize() → {Number}

获得日期文字大小
Returns:
Number

GetDateTime(strTime) → {String}

获取当前设置的日期和时间戳
Parameters:
Name Type Description
strTime String
Returns:
String

GetDateYear(strTime) → {Number}

获取当前设置的日期的年份
Parameters:
Name Type Description
strTime String
Returns:
Number

GetFooterBgColor() → {String}

获得底部背景色
Returns:
String

GetHeaderArrowsColor() → {String}

获得头部箭头颜色
Returns:
String

GetHeaderBgColor() → {String}

获得表头背景色
Returns:
String

GetHeaderTextColor() → {String}

获得头部文字颜色
Returns:
String

GetHeaderTextSize() → {Number}

获得头部文字大小
Returns:
Number

GetMouseClickEventStyle() → {Array}

获得鼠标点击样式
Returns:
Array

GetMouseMoveEventStyle() → {Array}

获得鼠标移过样式
Returns:
Array

GetOtherMonthDateColor() → {String}

获得非当月日期颜色
Returns:
String

GetSelectedDate() → {String}

获取当前选则的日期
Returns:
String

GetSelectedTime() → {String}

获取当前设置的时间
Returns:
String

GetThisMonthDateColor() → {String}

获得当月日期颜色
Returns:
String

GetTimeBorderColor() → {String}

获取时间框的颜色
Returns:
String

GetTimeTextColor() → {String}

获取时间框时间文字
Returns:
String

GetTimIntrColor() → {String}

获取时间框内容间隔符颜色
Returns:
String

GetToDayColor() → {String}

获得当日文字颜色
Returns:
String

GetWeekTextColor() → {String}

获得星期文字颜色
Returns:
String

GetWeekTextSize() → {Number}

获得星期文字大小
Returns:
Number

IsDrawBgColor() → {Boolean}

获取是否绘制图标背景色
Returns:
Boolean

SetBgColor(strColor)

背景颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
BgColor Color "0x00000000"

SetBgImg(strImg)

背景图
Parameters:
Name Type Description
strImg ImageProp 图片
Properties:
Name Type Description
BgImg ImageProp ""

SetBgImgRepeat(strMode)

背景图绘制模式
Parameters:
Name Type Description
strMode String 图片
Properties:
Name Type Description
BgImgRepeat Combo ["repeat","no-repeat","repeat-x","repeat-y"]

SetBtnBtmColor(strColor)

设置向上按钮的颜色
Parameters:
Name Type Description
strColor String
Properties:
Name Type Description
BtnBtmColor Color "0x00000000"

SetBtnBtmSize(nSize)

设置向下按钮的大小
Parameters:
Name Type Description
nSize Number 单位Px
Properties:
Name Type Description
BtnBtmSize Number 6

SetBtnTopColor(strColor)

设置向上按钮的颜色
Parameters:
Name Type Description
strColor String
Properties:
Name Type Description
BtnTopColor Color "0x00000000"

SetBtnTopSzie(nSize)

设置向上按钮的大小
Parameters:
Name Type Description
nSize Number 单位Px
Properties:
Name Type Description
BtnTopSize Number 6

SetCalendarBgColor(strColor)

日历背景色
Parameters:
Name Type Description
strColor String 背景色
Properties:
Name Type Description
CalendarBgColor Color ""

SetCalendarBorderColor(strColor)

日历边框颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
CalendarBorderColor Color "0xffd0d0d0"

SetCurrentTime(nTime, nMin, nSec)

设置当前时间
Parameters:
Name Type Description
nTime Number
nMin Number
nSec Number
Properties:
Name Type Description
CurrentTime Collection [12,12,12]

SetDateSize(nSize)

日期文字大小
Parameters:
Name Type Description
nSize Number 颜色
Properties:
Name Type Description
DateSize Number 14

SetDrawBgColor(bDraw)

是否绘制图标背景色
Parameters:
Name Type Description
bDraw Boolean true背景色,false背景图
Properties:
Name Type Description
DrawBgColor Boolean true

SetFooterBgColor(strColor)

底部背景色
Parameters:
Name Type Description
strColor String 背景色
Properties:
Name Type Description
FooterBgColor Color "0xffeae8e8"

SetHeaderArrowsColor(strColor)

头部箭头颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
HeaderArrowsColor Color "0xff000000"

SetHeaderBgColor(strColor)

表头背景色
Parameters:
Name Type Description
strColor String 背景色
Properties:
Name Type Description
HeaderBgColor Color ""

SetHeaderTextColor(strColor)

头部文字颜色
Parameters:
Name Type Description
strColor String 文字颜色
Properties:
Name Type Description
HeaderTextColor Color "0xff000000"

SetHeaderTextSize(nSize)

头部文字大小
Parameters:
Name Type Description
nSize Number 文字大小
Properties:
Name Type Description
HeaderTextSize Number 16

SetMouseClickEventStyle(strTextColor, strBgColor)

鼠标点击样式
Parameters:
Name Type Description
strTextColor String 文字颜色
strBgColor String 背景颜色
Properties:
Name Type Description
MouseClickEventStyle Collection ["0xff0000ff",""]

SetMouseMoveEventStyle(strTextColor, strBgColor)

鼠标移过样式
Parameters:
Name Type Description
strTextColor String 文字颜色
strBgColor String 背景颜色
Properties:
Name Type Description
MouseMoveEventStyle Collection ["0xff0000ff","0x2acccfd0"]

SetOtherMonthDateColor(strColor)

非当月日期颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
OtherMonthDateColor Color "0xff000000"

SetSelectedDate(strData)

设置当前选则的日期
Parameters:
Name Type Description
strData String "2020-02-25"

SetThisMonthDateColor(strColor)

当月日期颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
ThisMonthDateColor Color "0xff000000"

SetTimeBorderColor(strColor)

设置时间框的颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
TimeBorderColor Color "0xff00ffff"

SetTimeShow(bShow)

显示时间功能
Parameters:
Name Type Description
bShow Boolean 是否显示时间功能
Properties:
Name Type Description
ShowTime Boolean false

SetTimeTextColor(strColor)

设置时间框时间文字
Parameters:
Name Type Description
strColor String
Properties:
Name Type Description
TimeTextColor Color "0xff000000"

SetTimIntrColor(strColor)

设置时间框内容间隔符颜色
Parameters:
Name Type Description
strColor String
Properties:
Name Type Description
TimIntrColor Color "0xff000000"

SetToDayColor(strColor)

当日文字颜色
Parameters:
Name Type Description
strColor String 文字颜色
Properties:
Name Type Description
ToDayColor Color "0xffff0000"

SetWeekTextColor(strColor)

星期文字颜色
Parameters:
Name Type Description
strColor String 文字颜色
Properties:
Name Type Description
WeekTextColor Color "0xff000000"

SetWeekTextSize(nSize)

星期文字大小
Parameters:
Name Type Description
nSize Number 文字大小
Properties:
Name Type Description
WeekTextSize Number 14