Dec 03, 2013, 8:36 PM
[CLOSED] Get Field of EventWindow
Hi, How Can I do to get the elements(objects ext.net) of a EventWindow in the next image:
- First TextField I want to set the property setEditable(false).
- First DateField I want to set the property setVisible(false).
- First ComboBox I want set the property setDisabled(true).
- Label "to" rename to "a".
- Second DateField I want to set the property setVisible(false).
- Second ComboBox I want set the property setDisabled(true).
- CheckBox (All day) I want to set the property setVisible(false).
I have the code to get other elements as:
Thank you
- First TextField I want to set the property setEditable(false).
- First DateField I want to set the property setVisible(false).
- First ComboBox I want set the property setDisabled(true).
- Label "to" rename to "a".
- Second DateField I want to set the property setVisible(false).
- Second ComboBox I want set the property setDisabled(true).
- CheckBox (All day) I want to set the property setVisible(false).
I have the code to get other elements as:
var titleItem = eventWindow.formPanel.getComponent('title');
var dateRangeItem = eventWindow.formPanel.getComponent('date-range');
var fbar = eventWindow.getDockedComponent(0);
fbar.items.get(0).text = '<a href="#" id="tblink"></a>';
fbar.items.get(2).setVisible(false); //"Guardar";
fbar.items.get(3).text = "Borrar";
fbar.items.get(4).setVisible(false); // = "Cancelar";
This code is to configure those elements, but the getComponent(name) where "name" is other that the inspector in Firefox.Thank you
Last edited by Baidaly; Dec 03, 2013 at 9:42 PM.
Reason: [CLOSED]