bildwelt
E2E FORUM
E2E Bridge E2E Commerce

How to align the values in the table columns

E2E Forum User Interfaces How to align the values in the table columns

This topic contains 0 replies, has 1 voice, and was last updated by  Andi 3 years ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1793

    Andi
    Moderator

    By default, string values are aligned left and numeric values aligned right in the column. But sometimes it looks nicer to have the values of a column aligned in the center.

    To achieve this, just add the following script in the drawCallback operation on the <<UITableBinding>> usage dependency of your table:

    // enable center columns
    $(table).find('.center-column').css({'text-align':'center'});

    Then add at the <<UIColumnBinding>> on the tagged value ‘cssClass’ the value ‘center-column’ for every column you want to have centered.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.