Actionscript 3 在Flex 4.7 DateSpinner上是否有一种方法可以只在月份和年份之间进行选择
我只允许在DateSpinner上选择月份和年份。这在Flex SDK 4.7中可能吗?Actionscript 3 在Flex 4.7 DateSpinner上是否有一种方法可以只在月份和年份之间进行选择,actionscript-3,apache-flex,mobile,flex4.5,flex4.7,Actionscript 3,Apache Flex,Mobile,Flex4.5,Flex4.7,我只允许在DateSpinner上选择月份和年份。这在Flex SDK 4.7中可能吗? Thx这不是一个可以启用/禁用的设置 一种方法是使用喷丝头列表,其中包含您想要的年份值 但是您也可以扩展DateSpinner并隐藏您不想看到的组件。 如果查看DateSpinner源,您会看到三个属性: /** * The SpinnerList that shows the year field of the date. */ protected var yearList:S
Thx这不是一个可以启用/禁用的设置 一种方法是使用喷丝头列表,其中包含您想要的年份值 但是您也可以扩展DateSpinner并隐藏您不想看到的组件。 如果查看DateSpinner源,您会看到三个属性:
/**
* The SpinnerList that shows the year field of the date.
*/
protected var yearList:SpinnerList;
/**
* The SpinnerList that shows the month field of the date.
*/
protected var monthList:SpinnerList;
/**
* The SpinnerList that shows the date field of the date.
*/
protected var dateList:SpinnerList;
一旦微调器初始化,就可以将其可见性和includeinlayout设置为false