2012-09-20 3 views
1

나는 Sencha 앱을 개발 중입니다. 내가 'emptyText'설정에 목록에 대해 설정했습니다. 그러나 얼마 후 나는 그것을 바꿀 필요가있다. 나는sencha의 목록에 대해 setEmptyText

invoiceList.setEmptyText('<div style="margin-top: 20px; text-align: center">Sorry! No Items Found</div>'); 

내가 Crome 스에서 내 응용 프로그램을 실행, 내가 동적으로

답변

0

Ext.List하지가 난 목록 emptyText을 변경할 수있는 방법 오류

Uncaught TypeError: Object [object Object] has no method 'setEmptyText'

다음을 참조하십시오 그렇게하기 위해 다음과 같은 라인을 사용 방법은 sencha touch에서 setEmptyText를 사용합니다. 대신 sencha touch 2를 사용할 수 있습니다. 아마도이 코드는 sencha touch 1에서 작동합니다. 시도해 볼 수 있습니다.

invoiceList.emptyText = 'Empty test' 
invoiceList.refresh(); 
관련 문제