0
我需要一些属性设置,需要设置,将被发送到我的日期选择器。为什么评估函数将String设置为“false”而不是布尔false?
对于某些未知的changeMonth & changeYear的默认值没有被正确设置,它们返回false作为字符串。
我知道properties.changemonth是空的,所以它应该返回布尔值假,我设置为默认值。
任何人有任何想法,为什么它不工作?提前致谢。
$("#test-my-component-datepicker").datePicker({
'dateFormat': "${not empty properties.dateformat ? properties.dateformat : 'dd/mm/yy'}",
'showOn': "${not empty properties.showcalendar && properties.showcalendar ? 'button' : ''}",
'buttonImage': "${not empty properties.showcalendar && properties.showcalendar ? properties.imagecalendar : ''}",
'buttonImageOnly': "${not empty properties.showcalendar && properties.showcalendar ? properties.showbuttononly : ''}",
'changeMonth': "${not empty properties.changemonth ? properties.changemonth : false}",
'changeYear': "${not empty properties.changeyear ? properties.changeyear : false}",
'showButtonPanel': false,
'showOtherMonths': true,
'selectOtherMonths': true
});