go to:
http://ift.tt/1AtqBd6
click on a row, delete the email address inside the editor.
[INFOREQ] Ext.grid.plugin.RowEditing -> error tooltip
http://ift.tt/1AtqBd6
change the width to 650
Code:
Ext.create('Ext.data.Store', {
storeId:'simpsonsStore',
fields:['name', 'email', 'phone'],
data: [
{"name":"Lisa", "email":"lisa@simpsons.com", "phone":"555-111-1224"},
{"name":"Bart", "email":"bart@simpsons.com", "phone":"555-222-1234"},
{"name":"Homer", "email":"homer@simpsons.com", "phone":"555-222-1244"},
{"name":"Marge", "email":"marge@simpsons.com", "phone":"555-222-1254"}
]
});
Ext.create('Ext.grid.Panel', {
title: 'Simpsons',
store: Ext.data.StoreManager.lookup('simpsonsStore'),
columns: [
{header: 'Name', dataIndex: 'name', editor: 'textfield'},
{header: 'Email', dataIndex: 'email', flex:1,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: 'Phone', dataIndex: 'phone'}
],
selModel: 'rowmodel',
plugins: {
ptype: 'rowediting',
clicksToEdit: 1
},
height: 200,
width: 650,
renderTo: Ext.getBody()
});
click on a row, delete the email address inside the editor.
you will notice that a horizontal scrollbar appears.
in case the grid is inside a real layout (e.g. box), the tip will get cut off.
[INFOREQ] Ext.grid.plugin.RowEditing -> error tooltip
Aucun commentaire:
Enregistrer un commentaire