future-architect/cheetah-grid

textAlign

rajivsri opened this issue · 2 comments

Just can't get textAlign right. Everything else works fine.

Tried the following:

  1. Setting style directly in cgrid-column
    c-grid-column(field="dt_target", caption = "Target" style="{ textAlign: 'right' }")
  2. Setting it as a property in Javascript.
    :style="alRight"
  3. Header, but in VueJS, header is ignored - column definitions work.
  4. Setting style in CSS.

Text remains aligned to the left.

Thanks for any help.

The documentation describes setting textAlign using header for Javascript, but is silent on textAlign for VueJS.

The property is column-style.