Hide and show textbox when a particular option is selected in ext js

Viewed 43

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.

2 Answers

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

Related