GithubHelp home page GithubHelp logo

Feedback about streamlit-aggrid HOT 1 CLOSED

pablocfonseca avatar pablocfonseca commented on May 20, 2024
Feedback

from streamlit-aggrid.

Comments (1)

PablocFonseca avatar PablocFonseca commented on May 20, 2024

Hey Chris!

I'm glad to know that this component is helping you! =)

I do think that the boiler plate code is too much. But it is the burden of a highly customizable component. In version 0.1.9 I changed the signature of AgGrid call to capture any **kwargs and pass them as key/pair values to DefaultColDef. This way, for instance you can have a full editable grid just by calling ````AgGrid(data, editable=True)```.

  1. I'm thinking on how to make the call more 'friendly', maybe not using a builder for the gridOptions, but for AgGrid itself.
    1.2 I'm not the creator of the Ag-Grid javascript component, for some featrues, like conditional cell formatting, it is necessary to do that using Javascript, there is no easy way of converting python code to javascript, so the approach was to allow JsCode injection in the component.

  2. I don't think i understood this one. Do you want a multiselect and the grid filter to be in synch? Why don't you filter the data before sending to the grid and disable it on the grid? This way your filtering is centered in one location only.

  3. the grid returns a dicitionary. "data" key contains the data from the grid, "selected_rows" keys contains a dictionary with selected data. So, if you want a dataframe with selected data only, you could use

selected = grid_response['selected_rows']
selected_df = pd.DataFrame(selected)

from streamlit-aggrid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.