Commit c3992424 authored by goldledoigt's avatar goldledoigt

various fix

parent 37918724
......@@ -39,6 +39,7 @@ h1 {
input[type="text"] {
padding: 6px;
width: 466px !important;
margin: 0 auto;
font-size: 24px;
border: 1px solid #999999;
......
Ext.onReady(function() {
Ext.Loader.setConfig({enabled:true});
Ext.Loader.setConfig({enabled:true});
Ext.application({
name: 'Todo',
appFolder: 'js',
controllers: ['Tasks'],
launch: function() {
Ext.application({
name: 'Todo',
appFolder: 'js',
controllers: ['Tasks'],
launch: function() {
Ext.create('Ext.container.Container', {
renderTo: 'todo',
items: [{
xtype: 'container',
html: '<h1>Todos</h1>'
}, {
xtype: 'taskField'
}, {
xtype: 'taskList'
}, {
xtype: 'taskToolbar'
}]
});
}
});
Ext.create('Ext.container.Container', {
renderTo: 'todo',
items: [{
xtype: 'container',
html: '<h1>Todos</h1>'
}, {
xtype: 'taskField'
}, {
xtype: 'taskList'
}, {
xtype: 'taskToolbar'
}]
});
}
});
......@@ -2,8 +2,4 @@ Ext.define('Todo.store.Tasks', {
autoLoad: true,
model: 'Todo.model.Task',
extend: 'Ext.data.Store'
// data: [
// {label: 'task one', checked: false},
// {label: 'task two', checked: true}
// ]
});
Ext.define('Todo.view.TaskField' , {
width: 466,
enableKeyEvents: true,
alias : 'widget.taskField',
extend: 'Ext.form.TextField',
......
......@@ -6,7 +6,6 @@ Ext.define('Todo.view.TaskToolbar' , {
xtype: 'button',
text: 'Clear completed'
}, {
xtype: 'container',
html: '1 item left.'
xtype: 'container'
}]
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment