12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- Ext.define('SimpleTasks.view.tasks.Form', {
- extend: 'Ext.form.Panel',
- xtype: 'taskForm',
- requires: [
- 'Ext.layout.container.HBox',
- 'Ext.form.field.Date',
- 'Ext.ux.TreePicker'
- ],
- layout: 'hbox',
- cls: 'tasks-new-form',
- initComponent: function() {
- this.items = [
- {
- xtype: 'component',
- cls: 'tasks-new',
- width: 24,
- height: 24
- },
- {
- xtype: 'textfield',
- name: 'title',
- emptyText: 'Add a new task'
- },
- {
- xtype: 'treepicker',
- name: 'list_id',
- displayField: 'name',
- store: Ext.create('SimpleTasks.store.Lists', {storeId: 'Lists-TaskForm'}),
- width: 195
- },
- {
- xtype: 'datefield',
- name: 'due',
- value: new Date(),
- width: 85
- }
- ];
- this.callParent(arguments);
- }
- });
|