XUICalendarInput()

Methods

GetBgColor() → {String}

获取背景颜色
Returns:
String

GetBgImg() → {String}

获取背景图
Returns:
String

GetBgImgRepeat() → {String}

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

GetBtnCompose() → {String}

获得按钮排版
Returns:
String

GetBtnTextColor() → {Array}

获得按钮文字颜色
Returns:
Array

GetBtnTextContent() → {Array}

获得按钮文字
Returns:
Array

GetBtnTextSize() → {Number}

获得按钮文字大小
Returns:
Number

GetBtnWidth() → {Number}

获得按钮宽度
Returns:
Number

GetCalendarBgColor() → {String}

获得日历背景色
Returns:
String

GetDate() → {Double}

获取日期
Returns:
Double

GetDateByString() → {String}

获取字符串日期
Returns:
String

GetDateFormatter() → {String}

获得日期格式
Returns:
String

GetDateSize() → {Number}

获得日期文字大小
Returns:
Number

GetFooterBgColor() → {String}

获得底部背景色
Returns:
String

GetHeaderArrowsColor() → {String}

获得头部箭头颜色
Returns:
String

GetHeaderBgColor() → {String}

获得表头背景色
Returns:
String

GetHeaderTextColor() → {String}

获得头部文字颜色
Returns:
String

GetHeaderTextSize() → {Number}

获得头部文字大小
Returns:
Number

GetIconSize() → {Array}

图标大小
Returns:
Array

GetMouseClickEventStyle() → {Array}

获得鼠标点击样式
Returns:
Array

GetMouseMoveEventStyle() → {Array}

获得鼠标移过样式
Returns:
Array

GetOtherMonthDateColor() → {String}

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

GetScreenBorderColor() → {String}

获得显示框边框颜色
Returns:
String

GetScreenDefultColor() → {String}

获得显示框默认值颜色
Returns:
String

GetScreenHorizonalPadding() → {Array}

获得显示框水平内边距
Returns:
Array

GetScreenIcon() → {String}

获得显示框图标
Returns:
String

GetScreenIconPosition() → {Number}

获得显示框图标
Returns:
Number

GetScreenTextColor() → {String}

获得显示框文字颜色
Returns:
String

GetScreenTextSize() → {Number}

获得显示框文字大小
Returns:
Number

GetThisMonthDateColor() → {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"]

SetBtnCompose(strCompose)

按钮排版
Parameters:
Name Type Description
strCompose String 排版
Properties:
Name Type Description
BtnCompose Combo ["flex-start","flex-end","center","space-between","space-around"]

SetBtnTextColor(strColor1, strColor2, strColor3)

按钮文字颜色
Parameters:
Name Type Description
strColor1 String 第一个文字颜色
strColor2 String 第二个文字颜色
strColor3 String 第三个文字颜色
Properties:
Name Type Description
BtnTextColor Collection ["0xff000000","0xff000000","0xff000000"]

SetBtnTextContent(strText1, strText2, strText3)

按钮文字
Parameters:
Name Type Description
strText1 String 第一个按钮文字
strText2 String 第二个按钮文字
strText3 String 第三个按钮文字
Properties:
Name Type Description
BtnTextContent Collection ["清空","现在","确定"]

SetBtnTextSize(nSize)

按钮文字大小
Parameters:
Name Type Description
nSize Number 大小
Properties:
Name Type Description
BtnTextSize Number 14

SetBtnWidth(nWidth)

按钮宽度
Parameters:
Name Type Description
nWidth Number 大小
Properties:
Name Type Description
BtnWidth Number 20

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"

SetDate(nDate)

设置当前日期
Parameters:
Name Type Description
nDate Double

SetDateByString(strDate)

通过字符串设置日期
Parameters:
Name Type Description
strDate String 日期

SetDateFormatter(strFor)

日期格式
Parameters:
Name Type Description
strFor String 格式
Properties:
Name Type Description
DateFormatter Combo ["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日"]

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

SetIconSize(nWidth, nHeight)

图标大小
Parameters:
Name Type Description
nWidth Number 图标宽度
nHeight Number 图标高度
Properties:
Name Type Description
IconSize Collection [18,18]

SetMouseClickEventStyle(strTextColor, strBgColor)

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

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"

SetScreenBgColor(strBgColor)

显示框背景色
Parameters:
Name Type Description
strBgColor String 背景颜色
Properties:
Name Type Description
ScreenBgColor Color ""

SetScreenBorderColor(strColor)

显示框边框颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
ScreenBorderColor Color "0xffd0d0d0"

SetScreenDefultColor(strColor)

显示框默认值颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
ScreenDefultColor Color "0xffffffff"

SetScreenHorizonalPadding(nPadLeft, nPadRight)

显示框水平内边距
Parameters:
Name Type Description
nPadLeft Number 左边距
nPadRight Number 右边距
Properties:
Name Type Description
ScreenHorizonalPadding Collection [10,10]

SetScreenIcon(strImg)

显示框图标
Parameters:
Name Type Description
strImg ImageProp 图标
Properties:
Name Type Description
ScreenIcon ImageProp "XUICalendarInput/images/clar.png"

SetScreenIconPosition(nPos)

显示框图标位置
Parameters:
Name Type Description
nPos Number 图标位置
Properties:
Name Type Description
ScreenIconPosition Number 90

SetScreenTextColor(strColor)

显示框文字颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
ScreenTextColor Color "0xff000000"

SetScreenTextPosition(strPos)

显示框文字位置
Parameters:
Name Type Description
strPos String 位置
Properties:
Name Type Description
ScreenTextPosition Combo ["left","center","right"]

SetScreenTextSize(nSize)

显示框文字大小
Parameters:
Name Type Description
nSize Number 大小
Properties:
Name Type Description
ScreenTextSize Number 14

SetThisMonthDateColor(strColor)

当月日期颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
ThisMonthDateColor 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