Open hoffstadt opened 3 years ago
Here are some suggestions. Not sure if they are superfluous or too difficult, but here goes.
With regard to performant, I'd like to add that it should be performant to 1) load data, e.g. from a Pandas dataframe 2) interact with the datagrid, e.g. show, scroll, filter data and the like.
Be able to retrieve the filters, etc. that have been applied to the data by the end user. For example, if the end user wants to export the data selection, you would need to know the applied filters.
This seems very interesting for my project!
I’d like to have the ability to fill the table from the top, in anti-chronological order without any fuss.
i.e. appending a row results in it being displayed just under the header.
I haven’t found a reliable way to do this in the current table implementation and using the before
parameter of dpg.table_row()
doesn’t seem to work.
Please add this feature, and this will be very useful for date science baed project, thank you!
Feel free to comment additional suggestions.
Background
Although the table API is powerful, it is not the most friendly API for users wanting to quickly display data and requires a lot of manual setup. A higher level API written on top of the table API is desired. Something similar to the 0.6 simple table API but more powerful.
Required Functionality
Methods
This will be object oriented and thus will be operated on through various methods. Below are the current public non-obvious methods:
insert_column(...)
&insert_row(...)
append_row(...)
&append_column(...)
delete_row(...)
&delete_column(...)
get_cell_value(...)
&set_cell_value(...)
hide_column(...)
&show_column(...)
hide_row(...)
&show_row(...)
get_column(...)
&set_column(...)
get_row(...)
&set_row(...)
get_selections(...)
&set_selections(...)
highlight_row(...)
&highlight_column(...)
&highlight_cell(...)
& undoing these