Bancha / BanchaScaffold

Easy Grid and Form Prototyping
http://scaffold.bancha.io/
15 stars 6 forks source link

Grid Column Title #2

Closed douglas-srs closed 11 years ago

douglas-srs commented 11 years ago

A better way to give human grid column titles!

rolandschuetz commented 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'.
douglas-srs commented 11 years ago

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?

rolandschuetz commented 11 years ago

Ok, now I understand what you mean.

You have two options:

douglas-srs commented 11 years ago

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.

rolandschuetz commented 11 years ago

Currently there are more important feature in Bancha, but I'll add it to the roadmap.

Thanks for bringing it up, Roland