I have to include a checkbox in my code where when someone select on mail, I can give/show options for "To", "CC" and "BCC". When person doesn't select checkbox I want these textbox to be hidden in ext js.
I have to include a checkbox in my code where when someone select on mail, I can give/show options for "To", "CC" and "BCC". When person doesn't select checkbox I want these textbox to be hidden in ext js.
In that case I'd recommend two way binding.
You use a viewmodel to bind the checkbox value and then use that value to bind a hidden state onto your "mail" textfields.
Here is a very broadly made working sencha fiddle example
Alternatively to @KaMun's solution, you can use a FieldSet with checkboxToggle set to true: https://docs.sencha.com/extjs/6.7.0/classic/Ext.form.FieldSet.html