#5968 (Grid headers are too big sometimes)
by Luc Saffre · in Developers · assigned to Luc Saffre
Kokkuvõte
Children
- #5972 (The help_text of grid columns ignores show_internal_field_names) (by Luc Saffre in Developers assigned to Sharif Mehedi)
Kommentaarid
- 1 aasta, 7 kuud ago by Luc Saffre about #5968 (Grid headers are too big sometimes) : I pushed my work on this, i think that override_column_headers works fine. Todo: icons to symbols if possible. And #5972 (The help_text of grid columns ignores show_internal_field_names) (see also #2684 (help texts of column headers ignore the Site.show_internal_field_names option) )
- 1 aasta, 7 kuud ago by Luc Saffre about #5968 (Grid headers are too big sometimes) : @8lurry the two buttons for sorting and filtering a column are currently done as primereact icons. is it feasible to replace them by unicode symbols behind the label? Similar to what we do for the ⏏ of a text field. NB: I think I would remove the "|" character between the label and the ⏏ (at least I'd like...
- 1 aasta, 7 kuud ago by Luc Saffre about #5968 (Grid headers are too big sometimes) (1 reply) : No, we need to override the column headers per application and per actor. Because the abbreviation to use can depend on the context and even on the customer.
- 1 aasta, 7 kuud ago by Luc Saffre about #5968 (Grid headers are too big sometimes) (1 reply) : A better question is where to put the override_column_headers() method. The clean solution would be to put them next to where the field gets defined. But that's a model mixin. And we don't have any model-level override_column_headers() method.
- 1 aasta, 7 kuud ago by Luc Saffre about #5968 (Grid headers are too big sometimes) : Hey that's an interesting idea! Use override_column_headers(). This is of course a bit unorthodox because we are building these headers again and again for each request instead of having them stored in the site data.
- 1 aasta, 7 kuud ago by Sharif Mehedi about #5968 (Grid headers are too big sometimes) : @luc, you can test out this feature.
- 1 aasta, 7 kuud ago by Luc Saffre about #5968 (Grid headers are too big sometimes) : The application developer would say something like:
QtyVatItemBase.set_widget_options('unit_price', hide_sum=True, short_header="UP")
- 1 aasta, 7 kuud ago by Luc Saffre about #5968 (Grid headers are too big sometimes) :

- 1 aasta, 7 kuud ago by Luc Saffre about #5968 (Grid headers are too big sometimes) : Created new Ticket #5968 (Grid headers are too big sometimes).