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

Add an option to disable column titles in DataTable #6454

Closed
iandow opened this issue Jun 13, 2017 · 1 comment · Fixed by #8067
Closed

Add an option to disable column titles in DataTable #6454

iandow opened this issue Jun 13, 2017 · 1 comment · Fixed by #8067

Comments

@iandow
Copy link

iandow commented Jun 13, 2017

READ AND FOLLOW THESE INSTRUCTIONS CAREFULLY

This issue is being reported for bokeh version 0.12.6.

DataTable widgets do not include an option to hide column titles. It would be nice to have that option.

Coincidentally, the row_headers property is poorly named. It turns on/off the index column, but its name seems to suggest it would toggle column titles. Perhaps that option should be redefined.

Complete, minimal, self-contained example code that reproduces the issue

data = dict(
        dates=[date(2014, 3, i+1) for i in range(10)],
        downloads=[randint(0, 100) for i in range(10)],
    )
source = ColumnDataSource(data)

columns = [
        TableColumn(field="dates", title="Date", formatter=DateFormatter()),
        TableColumn(field="downloads", title="Downloads"),
    ]

data_table = DataTable(source=source, columns=columns, row_headers=False, editable=True)

Screenshots or screencasts of the bug in action

screenshot

@bryevdv
Copy link
Member

bryevdv commented Jun 13, 2017

Apparently one reason this may not have been done is that slick grid does not support it directly. But there may be some workarounds

https://stackoverflow.com/questions/19580402/show-or-hide-slickgrid-header-filter-row-at-runtime
https://stackoverflow.com/questions/2728265/how-to-remove-the-header-in-slickgrid

Whenever this issue s tackled, we should repurpose row_header property for it, and make a new property to show/hide the index column

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

Successfully merging a pull request may close this issue.

2 participants