Skip to content

Better Control of Columns Definitions and other table properties #74

@galran

Description

@galran

Hi. I just started to use Blink to create some simple UI, in which a user will need to update a small (up to a few hundreds) lines of a DataFrame. TableView seems to offer a very nice solution to this problem, so thank you! 😊

I would like to have some more control over the table definitions, such as disable sorting or removing some columns from the display.

Currently I overridden the “_showtable_sync” function and updadet the “coldefs” argument, but it seems like a hacky solution and will probably break with future updates.

As I’m new to Julia and OpenSource development and etiquette, I was wondering what is the best way to implement such a feature? The solution I thought of is to allow the user to call TableView with the options argument that contains a special key for a callback function that will be called (if exists) just before calling showfun. This callback will accept the options Dict, as it currently contains all the information (including the handlers) and will make the necessary changes. The change itself should be a few lines of code.

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions