# cljs-dashboard-widgets **Repository Path**: mirrors_puppetlabs/cljs-dashboard-widgets ## Basic Information - **Project Name**: cljs-dashboard-widgets - **Description**: A library of clojurescript widgets and utility code, intended for use in building developer / metrics dashboards. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-04-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cljs-dashboard-widgets A library of clojurescript widgets and utility code, intended for use in building developer / metrics dashboards. ## Installation To use this library in your application, simply add this project as a dependency in your leiningen project file: [![Clojars Project](http://clojars.org/puppetlabs/cljs-dashboard-widgets/latest-version.svg)](http://clojars.org/puppetlabs/cljs-dashboard-widgets) ## Contents At present the library contains two widgets: * `metrics-box`: A box that displays a line graph of a series of data points (as seen in the PuppetDB dashboard) * `sortable-table`: A simple table, built using the `reagent` library. Take a list of maps representing your table data, assign it to a reagent atom, and bind the table to the atom. The widget will render the data, with column headers that can be clicked on to re-sort the table. Modifying the value of the atom will cause the table to be updated automatically. ## Demo The project includes a sample app that you can run to see the widgets in action, and to see how to wire them up to a data source on the server. To run: * start a Clojure REPL * run `(go)` * run `(start-figwheel)` * open a browser to localhost:8080 * For the figwheel server, the host should be localhost:3449/metrics.html ``` $ lein repl ... Commands: => (metrics-help) ;; prints this message => (go) ;; Starts webserver => (reset) ;; Reloads all clj code and restarts webserver => (start-figwheel) ;; starts figwheel, to dynamically ;; recompile cljs code and send it to ;; the browser => (cljs-repl) ;; starts cljs repl, may need to reload ;; browser to attach user=> (go) ... user=> (start-figwheel) ``` ## Support We use the [Trapperkeeper project on JIRA](https://tickets.puppetlabs.com/browse/TK) for tickets on cljs-dashboard-widgets, although Github issues are welcome too.