Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create a button initially hidden in ExtJS?

Tags:

extjs

extjs4

I have a toolbar with some buttons and one of the buttons needs to be invisible at creation and visible at some point in my app.

I'm currently adding the button when it needs to be visible but that is not exactly what I want.

like image 834
A1rPun Avatar asked Jan 14 '23 10:01

A1rPun


1 Answers

When you create the button you can set hidden: true in the config.

Or you can 'hide()' the button soon after adding it and then 'show()' it at a later date.

like image 143
dougajmcdonald Avatar answered Jan 18 '23 15:01

dougajmcdonald