PDA

View Full Version : extJS DOM



jamone
14 Dec 2010, 5:38 PM
I would like to change some extJS DOM components such as the dialog box "Title", button "Labels", etc., "on-the-fly" using Javascript.

Is this possible? Has anyone tried doing this successfully?

Thanks in advance for your responses.

Cheers

Animal
14 Dec 2010, 10:31 PM
Button.setText?

Panel.setTitle?

jamone
16 Dec 2010, 12:50 AM
Actually my problem is with changing the fieldLabels of textfields.

Ex:
login.getForm().findField('userName').fieldLabel = "Connexion";
alert(login.getForm().findField('userName').fieldLabel
login_form.show(this);

The alert dialog shows the change, but the form still has the original label.

Thanks in advance for any relies.
Cheers

jamone
16 Dec 2010, 4:15 AM
Found the solution in another thread.