I am displaying an html inside an Ext.Panel using setHtml method. The HTML is as below.
<html>
First name: <input type="text" name="firstname"><br>
Last name: <input type="text" name="lastname">
</html>
My Panel is
Ext.define('WU.view.Template', {
extend: 'Ext.Panel',
alias: 'widget.templateview',
config: {
items: [{
xtype: 'panel',
id: 'dummyPanel',
}]
}
});
I am setting the values inside the controller as below.
Ext.getCmp('dummyPanel').setHtml(html file);
If I want to get the values from the input field 'firstname' , then how to fetch these values?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.