我只允许在我的DateSpinner上选择月份和年份。这在FlexSDK4.7中是可能的吗?Thx
发布于 2014-05-13 08:00:28
它不是可以启用/禁用的设置。
一种方法可以是将SpinnerList与所需年份的值一起使用。
但是你也可以扩展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;一旦初始化了纺丝器,您就可以将其可见性和包含布局设置为false。
https://stackoverflow.com/questions/23603663
复制相似问题