reblocks-ui2 - A pack of UI components for Reblocks web-framework.

REBLOCKS-UI2 ASDF System Details

Installation

You can install this library from Quicklisp, but you want to receive updates quickly, then install it from Ultralisp.org:

(ql-dist:install-dist "http://dist.ultralisp.org/"
                      :prompt nil)
(ql:quickload :reblocks-ui2)

Usage

TODO: Write a library description. Put some examples here.

API

REBLOCKS-UI2/BUTTONS/BUTTON

Classes

BUTTON

Readers

Functions

function
CONTENT &KEY (WIDGET-CLASS 'BUTTON) ON-CLICK (CLASS "button") DISABLED STYLE

REBLOCKS-UI2/CONTAINERS/POPUP/WIDGET

Classes

POPUP-WIDGET

This widgets shows a popup window.

Inherit from this class and define a method for render-popup-content generic-function. Then you will be able to instantiate your class instance and call show-popup generic function.

Readers

Accessors

Generics

Renders inner HTML for popup window. You need to define a method for this generic function and specialize it for your own class.

REBLOCKS-UI2/TABLES/CLICKABLE-ROW

Classes

CLICKABLE-ROW-WIDGET

Functions

REBLOCKS-UI2/TABLES/TABLE

Classes

COLUMN

Readers

reader
(:cell-maker = #'create-widget-from)

Additional CSS classes for column cells

reader
(:GETTER = (LAMBDA (ROW) (DECLARE (IGNORE ROW)) (ERROR "Real getter should be provided to COLUMN function.")))
TABLE-ROW

Readers

Original object, passed as a row to the make-table function.

Reference it a table row belong to.

TABLE-WIDGET

Readers

Generics

Functions

function
title &key (getter nil getter-given-p) (cell-maker nil cell-maker-p) (align :center) (classes nil clases-given-p)
function
columns rows &key (table-class 'table-widget) (row-class nil row-class-given-p)

Updates cell widgets using base object, stored in the ROW.

REBLOCKS-UI2/THEMES/API

Functions

REBLOCKS-UI2/THEMES/ZURB

Classes

ZURB-THEME

Functions

REBLOCKS-UI2/WIDGET

Classes

UI-WIDGET

Generics

Returns a list of classes for the widget.

Default implementation returns class list and all it's parent names.

Works like reblocks/dependencies:get-dependencies generic-function, but in context of current theme.

Renders widget in given theme. All reblocks-ui2 widgets should implement this method instead of a method for reblocks/widget:render generic-function.