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

feat(react-grid): implement column chooser #366

Merged
merged 48 commits into from Oct 10, 2017

Conversation

gsobolev
Copy link
Contributor

No description provided.

columns | Array<[Column](grid.md#column)> | | Specifies for which row object fields columns are created.
hiddenColumns | Array<string> | [] | An array containing the names of the columns to be hidden.
onHiddenColumnsChange | (nextHiddenColumns: Array<string>) => void | | Handles column visibility change.
contentTemplate | (args: [ColumnChooserRootArgs](#column-chooser-root-args)) => ReactElement | | A template that renders the column chooser markup.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

contentTemplate with ColumnChooserRootArgs... It's quite strange

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also seems that we should extract container and item templates for API consistency

@@ -0,0 +1,30 @@
# HiddenTableColumns Plugin Reference
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Outdated?

Copy link
Contributor

@kvet kvet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to update landing page

@@ -0,0 +1,38 @@
# Grid Reference
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 'Grid'?

Field | Type | Description
------|------|------------
columnChooserItems | Array<[ColumnChooserItem](#column-chooser-item)> | An array of column chooser items.
onColumnToggle | (columnName: string) => void | Handles column visibility change.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or onToggleColumn?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed this with our technical writer. The onColumnToggle is correct.

};
```

At this point, the Grid and the ColumnChooser a synchronized.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"At this point, the Grid and the ColumnChooser a synchronized."?

@gsobolev gsobolev merged commit 74b99c1 into DevExpress:master Oct 10, 2017
@gsobolev gsobolev deleted the column-chooser branch October 10, 2017 10:52
@gsobolev gsobolev mentioned this pull request Oct 18, 2017
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

Successfully merging this pull request may close these issues.

None yet

6 participants