Skip to content

Commit

Permalink
Add date picker to example
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchell Simoens committed May 14, 2012
1 parent d83e4e9 commit b201ec4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
17 changes: 9 additions & 8 deletions Ux/locale/override/st/picker/Picker.js
@@ -1,14 +1,15 @@
Ext.define('Ux.locale.override.st.picker.Picker', {
override: 'Ext.picker.Picker',
config: {
doneButton: {
locales: {
text: 'buttons.done'
override : 'Ext.picker.Picker',

config : {
doneButton : {
locales : {
text : 'buttons.done'
}
},
cancelButton: {
locales: {
text: 'buttons.cancel'
cancelButton : {
locales : {
text : 'buttons.cancel'
}
}
}
Expand Down
10 changes: 8 additions & 2 deletions st/index.js
Expand Up @@ -9,13 +9,16 @@ Ext.require([
'Ext.Container',
'Ext.TitleBar',
'Ext.field.Select',
'Ext.field.DatePicker',
'Ext.tab.Panel',

'Ux.locale.Manager',
'Ux.locale.override.st.Component',
'Ux.locale.override.st.Button',
'Ux.locale.override.st.Container',
'Ux.locale.override.st.TitleBar',
'Ux.locale.override.st.field.Field'
'Ux.locale.override.st.field.Field',
'Ux.locale.override.st.picker.Picker'
], function() {
Ux.locale.Manager.setConfig({
ajaxConfig : {
Expand Down Expand Up @@ -53,6 +56,10 @@ Ext.setup({
text : 'buttons.save'
}
},
{
xtype : 'datepickerfield',
align : 'right'
},
{
xtype : 'selectfield',
align : 'right',
Expand Down Expand Up @@ -89,7 +96,6 @@ Ext.setup({
{
title : ' ',
locales : {
//html : 'tabs.two.html',
title : 'tabs.two.title'
},
items : [
Expand Down
3 changes: 2 additions & 1 deletion st/locales/en.json
Expand Up @@ -15,7 +15,8 @@
},
"buttons" : {
"cancel" : "Cancel",
"save" : "Save"
"save" : "Save",
"done" : "Done"
},
"misc" : {
"bottomTitle" : "Bottom Toolbar"
Expand Down
3 changes: 2 additions & 1 deletion st/locales/fr.json
Expand Up @@ -15,7 +15,8 @@
},
"buttons" : {
"cancel" : "Annuler",
"save" : "Enregistrer"
"save" : "Enregistrer",
"done" : "Fait"
},
"misc" : {
"bottomTitle" : "barre d'outils en bas"
Expand Down

0 comments on commit b201ec4

Please sign in to comment.