Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想有条件地应用样式类。
假设我有 xforms:trigger 按钮,当只读标志为真时,我想将此按钮设为只读(禁用)。
<xforms:trigger appearance="minimal" class="xforms-readonly">
class="xforms-readonly"我想有条件地应用它的条款。
class="xforms-readonly"
请提出一种方法。
标准兼容的方式是这样的:
<xforms:model> ... <xforms:bind nodeset="instance('data')/read-only" readonly=". = 'true'"/> </xforms:model> ... <xforms:trigger ref="instance('data')/read-only" appearance="minimal"> ... </xforms:trigger>