Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ext.define('TUL.view.Unit' ,{
- /*extend: 'Ext.grid.Panel',*/
- extend: 'Ext.window.Window',
- alias: 'widget.unittul',
- title: 'All Users',
- title: '..::: Selamat Datang :::..',
- layout: 'fit',
- //bodyPadding: 10,
- height: '55%',
- width: '35%',
- closable: true,
- autoShow: true,
- initComponent: function() {
- this.items = [
- {
- xtype: 'panel',
- title: 'Search the Ext Forums',
- width: 600,
- bodyPadding: 10,
- layout: 'anchor',
- items:[{
- xtype:'textfield',
- id:'cobatext'
- },{
- xtype: 'combo',
- store: 'Unit',
- displayField: 'title',
- emptyText:'Cari Unit',
- minChars: 1,
- value :'',
- action:'cariUnit',
- id: 'comboUnit',
- valueField : 'strnama_dealer',
- typeAhead: false,
- hideLabel: true,
- hideTrigger:true,
- anchor: '100%',
- name :'cari',
- listConfig: {
- loadingText: 'Mencari Data...',
- emptyText: 'Data yang Anda Cari Tidak Ada.',
- // Custom rendering template for each item
- getInnerTpl: function() {
- return '<div class="search-item">' +
- '<h3><span>{strkode_dealer}<br />by {strnama_dealer}</span>{strnama_dealer}</h3>' +
- '<h3>ID Unit : {intid_unit}</3><br>' +
- '<h4>Nama Unit : {strnama_unit}</h4></div>';
- }
- },
- pageSize: 10,
- }]
- }
- ];
- this.buttons = [
- {
- text: 'Save',
- this.callParent(arguments);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement