Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textalignment #49

Closed
fuadrivai opened this issue Oct 27, 2020 · 2 comments
Closed

Textalignment #49

fuadrivai opened this issue Oct 27, 2020 · 2 comments

Comments

@fuadrivai
Copy link

i have a cell with type :PlutoColumnType.number(),
i want all text in cell align to right.

how to set this?

@bosskmk
Copy link
Owner

bosskmk commented Oct 27, 2020

Check out version 0.1.20.

https://github.com/bosskmk/pluto_grid/wiki/column-definition

  PlutoColumn(
    title: 'your column title',
    field: 'your_column_field_name',
    type: PlutoColumnType.text(
      readOnly: false,
      defaultValue: '',
    ),
    width: 200,
    textAlign: PlutoColumnTextAlign.Left,
    fixed: PlutoColumnFixed.Left,
    sort: PlutoColumnSort.None,
    enableDraggable: true,
    enableSorting: true,
    enableContextMenu: true,
  ),

You can set PlutoColumnTextAlign to left or right.

@fuadrivai
Copy link
Author

It's work, thanks for the reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants