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 ボタンがあるとします。読み取り専用フラグが true の場合、このボタンを読み取り専用 (無効) にしたいとします。
<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>