Liking cljdoc? Tell your friends :D

wagoe.shared.ui.core.shell

The admin shell: a sidebar that opens and closes, topbar and user menu around a page.

Here rather than in admin so that modules admin depends on (user) can render in it. The sidebar shows the navigation modules contribute (wagoe.platform.core.http.nav), or a page's own :nav, a vector of groups:

[{:id :user ; a collapsible module group; without :label "Users" :icon :users ; an id, a plain list under :label :open? true :items [{:href "/web/admin/users" :label "Users" :icon :users :active? true}]}]

The admin shell: a sidebar that opens and closes, topbar and user menu around a page.

Here rather than in admin so that modules admin depends on (user) can
render in it. The sidebar shows the navigation modules contribute
(`wagoe.platform.core.http.nav`), or a page's own `:nav`, a vector of groups:

  [{:id    :user                  ; a collapsible module group; without
    :label "Users" :icon :users  ; an id, a plain list under :label
    :open? true
    :items [{:href "/web/admin/users" :label "Users"
             :icon :users :active? true}]}]
raw docstring

admin-shellclj

(admin-shell content opts)

content in the shell. opts: :user, :page-title, :logo-url, and :nav to replace the request's navigation (see the ns docstring).

`content` in the shell. `opts`: :user, :page-title, :logo-url, and :nav to
replace the request's navigation (see the ns docstring).
sourceraw docstring

shell-pageclj

(shell-page title content opts)

A complete page titled title with content in the shell. opts as for admin-shell, plus :flash.

A complete page titled `title` with `content` in the shell. `opts` as for
`admin-shell`, plus :flash.
sourceraw docstring

(sidebar nav)
(sidebar nav opts)

The sidebar for nav (see the ns docstring). opts supports :logo-url for a custom brand image.

The sidebar for `nav` (see the ns docstring). `opts` supports :logo-url for
a custom brand image.
sourceraw docstring

user-navclj

(user-nav user)

The groups of the request's navigation that user may open; nil outside a request.

The groups of the request's navigation that `user` may open; nil outside a
request.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close