6
Tôi muốn tự động đặt tiêu đề bảng. Và những điều sau đây dường như không hoạt động! Ý tưởng nào? Cảm ơn trước!Thay đổi tiêu đề Ext.panel
Ext.create('Ext.panel.Panel', {
id: 'p0',
title: 'Hello World',
width: 200,
html: '<p>Lorem ispsum doler sit</p>',
renderTo: Ext.getBody()
});
Ext.getCmp('p0').title = 'Bye World'; //does not work!
Ext.getCmp('p0').header.title = 'Bye World'; //does not work either!
Argh, không thể tin rằng tôi đã bỏ lỡ điều đó! Cảm ơn bạn! – rebnoob