Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
kostaskougios committed Jan 15, 2024
1 parent ce6cabe commit 3262c72
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ Standard html elements
Generic components for buttons, menus, forms, text, grids, tables:
[Chakra](docs/chakra.md)

"Quick" classes to simplify complicated UI's like tables
[Quick Classes](docs/quick.md)

Charts and visualisation:
[Nivo](docs/nivo.md)

Expand Down
16 changes: 16 additions & 0 deletions docs/quick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Quick classes

There are some UI components, like tables, that require a lot of elements: TableContainer, TBody, Tr, Th etc. `Quick*` classes
simplify creation of this components.

## QuickTable

```scala
val conversionTable = QuickTable().headers("To convert", "into", "multiply by")
.caption("Imperial to metric conversion factors")
val tableRows:Seq[Seq[String]] = Seq(
Seq("inches","millimetres (mm)","25.4"),
...
)
conversionTable.rows(tableRows)
```

0 comments on commit 3262c72

Please sign in to comment.