私はfieldsetの値をcheckboxToggle
プロパティをtrue
に設定してバインドできません。したがって、その設定は次のようになります。フィールドセット値をバインドする方法
xtype: "fieldset",
title: "Box",
checkboxName: "bounding_box",
checkboxToggle: true,
bind: {
collapsed: "{!rec.bounding_box}"
} // results in error message: TypeError: this[c._config.names.set] is not a function
// bind: "{!rec.bounding_box}" does not work either
したがって、上記のコードは機能しません。
xtype: "checkbox",
fieldLabel: "Show label",
name: "show_label",
bind: "{rec.show_label}"
はそれで何が問題であり、私はそれをどのように修正することができます。しかし、非常に同じ技術が簡単なcheckbox
分野で素晴らしい作品?
私は、両方のフィールドが 'bool'型のモデルに追加する必要があります。 – Jacobian
まあ、バグのようです。ドキュメントによると、 'fieldset'は' expanded'プロパティを持っていません。しかし、 'bind:{expanded: '{rec.bounding_box}'}'のようにバインドすると動作します。しかし、 'collapsed'プロパティーをバインドすると、それは機能しません。 – Jacobian