Вопрос

I'm using ExtJs 4 to create a calendar with Sencha Architect (Ext.menu.DatePicker).

But I have a problem with getters and setters.

This is my datepicker:

{
      xtype: 'datemenu',
      floating: false,
      height: 242,
      id: 'calendarT',
      width: 241
}

And later to get value I'm using .getValue() function:

console.log(Ext.getCmp('calendarT').getValue());

But firebug says: 'TypeError: Ext.getCmp(...).getValue is not a function'

With set is the same problem.

Any solution?

Thanks for all, Ivan.

UPDATE: my example is similar to this:fiddle

Это было полезно?

Решение

solved, very easy:

Ext.getCmp('calendarT').query('datepicker')[0].getValue());
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top