【问题标题】:xforms mindate on a date-picker日期选择器上的 xforms mindate
【发布时间】:2012-04-16 17:47:53
【问题描述】:

谁能告诉我在日期时间字段中向日期选择器添加最小日期/时间的正确语法。 这行得通

<fr:date mindate="2012-05-05" ref="mydate">

这不是

<fr:date mindate="current-date()" ref="mydate">

谢谢

【问题讨论】:

  • fr:date 可从哪个版本获得?

标签: xforms mindate


【解决方案1】:

如果值为静态,则您只能在 fr:date 组件中使用 mindatemaxdate 的属性。如果该值由 XPath 表达式确定,则需要使用具有 ref 属性的嵌套元素。所以以下应该可以解决问题:

<fr:date ref="mydate">
    <fr:mindate ref="current-date()"/>
</fr:date>

【讨论】:

  • @avernet: fr:date 从哪个版本可用?
猜你喜欢
  • 2021-09-03
  • 1970-01-01
  • 2019-04-15
  • 2017-01-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多