basxsoftwareassociation / bread

Engine to create database applications based on Django and the IBM Carbon Design System
BSD 3-Clause "New" or "Revised" License
19 stars 2 forks source link

Add example code for usage of Datatable #89

Closed saemideluxe closed 2 years ago

saemideluxe commented 2 years ago

The docstring for the Datatable component is a bit too technical, especially when using it for the first time. We should add some example code on how to display a simple table from a simple datastructure like

headers = ["Country", "Continent", "Population"]
rows = [
    ["Switzerland", "Europe", 8_500_00],
    ["Germany", "Europe", 83_000_00],
    ["Thailand", "Asia", 70_000_00],
]

or something similar.

dward2nd commented 2 years ago

I added a simple example and will make a pull request later.

saemideluxe commented 2 years ago

Okay, thanks.. In the future please make the PR first and linke the issue inside the PR description (like this: #89 ), before you close the issue. That way we will know which PR will solve the issue.

saemideluxe commented 2 years ago

(FYI you can link an issue by just typing #89)

dward2nd commented 2 years ago

This pull request #95 would solve the issue. Thank you.