trestle
trestle copied to clipboard
How to customize columns?
I can't find information on how to best customize the columns of the default model. Is there any information how to proceed? Would it be common to just go to manually define all columns from scratch?
Some questions:
- If I want to adjust the title of a single column what is the best way?
- How can I hide a single column but leave everything else as default?
- Is there a way to generate code that matches the
Table::Automatic
? - Is there a documentation of all the available column types and the parameters for the columns?
I provided one answer to the question: How to adjust the title of a single column? => https://github.com/TrestleAdmin/trestle/wiki#q-how-to-rename-the-title-of-a-resource-view
How to generate code which matches the Table::Automatic
=> https://github.com/TrestleAdmin/trestle/wiki#q-how-can-i-start-with-customizing-the-table-definition
I provided one answer to the question: How to adjust the title of a single column? => https://github.com/TrestleAdmin/trestle/wiki#q-how-to-rename-the-title-of-a-resource-view
Even easier is to put header where you define columns column :organizer, header: 'TEST'
though if you must support multiple locales then probably it's better done your way