Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Navigationview and items with title #26

Open
frankbolviken opened this issue Jun 5, 2013 · 8 comments
Open

Navigationview and items with title #26

frankbolviken opened this issue Jun 5, 2013 · 8 comments

Comments

@frankbolviken
Copy link

Hi,

I have a navigation view, with an form added to it

xtype: 'navigationview',
height: '100%',
width: '100%',
items: [{
xtype: 'deviationform',
height: '100%',
width: '100%'
}]

This deviationform, has this config:
config: {
height: '100%',
enableLocale: true,
locales: {
title: 'DeviationForm.title'
},

The issue is that this title is not added to the navigationbar.. its just set on the container (not pushed to navigationview's titlebar). This works fine if you dont use locale, and just set title: "sometitle" directly.

@dishwashwebdesign
Copy link

might this be of any help?
wnielson/sencha-SlideNavigation#42

@frankbolviken
Copy link
Author

hm, I dont think so. Since this is not related to slidenav. This is a container added in the navigationview. So touch should then automatically populate a titlebar in the navigationbar when you add items, push back button etc. But this is not happening when using this with UX. The title is never set in the navigationbar

@frankbolviken
Copy link
Author

damn, didnt mean to close

@frankbolviken frankbolviken reopened this Jun 5, 2013
@thecodefish
Copy link
Contributor

I should have added support for this in my pull request which Mitchell merged in a few weeks back. Make sure you are 'requiring' 'Ux.locale.override.st.navigation.Bar' and 'Ux.locale.override.st.navigation.View' in your app.

It's possible there's a bug in there somewhere though - I'll have a look when I get the chance.

@frankbolviken
Copy link
Author

Does not work, for me at least.
Secondly, the "Done" button in datepicker also does not get translated. The left declinde button gets correctly localized.

@frankbolviken
Copy link
Author

had to add this code in the Picker.js override, for translation on the "done" button to work.

setLocale: function() {
//Override.. didnt translate the "Done" button correctly.
this.down('button[align="right"]').setText(Ux.locale.Manager.get('buttons.done'));
}

@thecodefish
Copy link
Contributor

I've tested this code and it appears to work ok with ST 2.1.0-rc2 (the version attached to this project), and 2.1.1. However I tried plugging in 2.2.1 with no other modifications (simply replacing the /st/mvc/touch folder) and it breaks (along with a few other things). However I personally haven't used 2.2.1 for anything yet so I may be doing something wrong or missing something obvious.

@sonulaugh
Copy link

If we assign a xtype in the navigation tab panel then the title are not setting.
{
title : ' ',
locales : {
title : 'tabs.two.title'
},
} //This works .
but if i do something like this,
{
xtype:'button'
title : ' ',
locales : {
title : 'tabs.two.title'
},
} // Its not setting the title of the tab bar.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants