WorldsEndless / retabled

Reagent/reframe-compatible table generation in Clojure[script]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

retabled

Use

Note that a present, while the library places appropriate style classes on elements, it doesn’t provide style rules for those classes, so it is left up to the user. Styles are set up in accordance with bulma, but are pretty generic.

The basic usecase is (retabled.core/table controls table-data). Table-data is simply a sequence of uniform maps, the kind of thing you get from a database. Controls defines how to make each row of that data into a table row.

Full example is in our test, retabled.core-front

CHANGES

V4

  • sortfn key added to controls

V3

  • BREAKING: :cols renamed to :columns in the control-map
  • Final screen is now available if there are a remainder of entires
  • the colspans of the paging bar are now calculated dynamically

V2

  • No longer breaks if number of entries is less than screen size

Prerequisites

None. Just use this library.

License

Copyright © 2018 Tory S. Anderson

About

Reagent/reframe-compatible table generation in Clojure[script]

License:Eclipse Public License 1.0


Languages

Language:Clojure 99.5%Language:CSS 0.5%