trestle icon indicating copy to clipboard operation
trestle copied to clipboard

How to customize columns?

Open coezbek opened this issue 3 years ago • 3 comments

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?

coezbek avatar Dec 07 '21 18:12 coezbek

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

coezbek avatar Dec 07 '21 21:12 coezbek

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

coezbek avatar Dec 08 '21 08:12 coezbek

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

PadawanBreslau avatar Feb 04 '22 19:02 PadawanBreslau