문제

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