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

Feature: Type -> Component mapping with weakdeps #197

Open
sjkelly opened this issue Mar 28, 2023 · 0 comments
Open

Feature: Type -> Component mapping with weakdeps #197

sjkelly opened this issue Mar 28, 2023 · 0 comments

Comments

@sjkelly
Copy link
Contributor

sjkelly commented Mar 28, 2023

When #195 is merged it should be possible to write an extension such that some common Types have trivial component methods:

df = DataFrame(data) 

app = dash()

app.layout = dash_datatable(
    data = map(eachrow(df)) do r
      Dict(names(r) .=> values(r))
    end,
    columns=[Dict("name" =>c, "id" => c) for c in names(df)]
)

Could become:

df = DataFrame(data) 

app = dash()

app.layout = dash_datatable(df)
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

No branches or pull requests

1 participant