Skip to content

Latest commit

 

History

History
 
 

chosen

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

cljsjs/chosen

This is a cljsjs package for https://github.com/harvesthq/chosen

[cljsjs/chosen "1.4.2-1"] ;; latest release

This jar comes with deps.cljs as used by the Foreign Libs feature of the ClojureScript compiler. After adding the above dependency to your project you can require the packaged library like so:

(ns application.core
  (:require cljsjs.chosen))

CSS Assets

This jar comes with additional CSS assets:

They can be referenced as follows:

;; If you need direct file access
(clojure.java.io/resource "public/chosen/css/chosen.css")

;; If you're using compojure for routing, by default it will serve
;; assets under "/public".  This means GET /assets/chosen/css/chosen.css
;; will work as expected if you add the following handler:
(compojure.route/resources "/assets")

;; If you're using hiccup
(hiccup.page/include-css "assets/chosen/css/chosen.css")