Closed douglas-srs closed 11 years ago
Ok, this is a statement, what exactly do you want? Sorry, better is not mensurable or in any form clear. I really don't know what you would like to have.
If you don't example provide code, please at something like the following:
Currently a field name like 'some_example' is translated to 'Some Example'.
It would be better if it would be translated to 'SOME EXAMPLE'.
I'm talking about scaffold grid, it get's all the fields then show it's column title's as the Field name itself, for exemple, I am Brazilian so if I have a field called "descricao" I would like to have an option set the column title to "Descrição" with accents! Do you get it?
Ok, now I understand what you mean.
You have two options:
Add a afterBuild config to your grid scaffold config, something like this:
afterBuild: function(config) { // directly set the new text title config.columns[1].text = 'Descrição'; // since the 0 index is the hidden id, this is the first visible column return config; }
Thank you for answering my question, I manage to do it but I don't like it very much, just for knowledge I wanna know if there will be an easy way to do it, like this:
{ target: 'Bancha.model.Membro', exclude: ['data_nascimento', 'nacionalidade'], editable: false, deletable: false, buttons: [], titles: [{'descricao', 'Descrição'}, {'congregacao', 'Congregação'}] }
Thanks again.
Currently there are more important feature in Bancha, but I'll add it to the roadmap.
Thanks for bringing it up, Roland
A better way to give human grid column titles!