Deckster is a lightweight web UI framework for organizing lots of interactive elements on a single screen.
Please reference the samples for their usages. In short, it's '''javascript $("#deck1").deckster(); '''
- col-max (REQUIRED) (Example: 4)
- How many cards across is the deck?
<dt>title (Example: 'Sample Deck')</dt>
<dd>If given, a the title will display above the deck</dd>
<dt>expandable (Default: True)</dt>
<dd>Can the user expand the cards? Individual card options can override this.</dd>
<dt>cards-expanded (Default: True)</dt>
<dd>Do the cards start out expanded? Individual card options can override this.</dd>
<dt>draggable (Default: True)</dt>
<dd>Can the cards be dragged? Individual card options can override this.</dd>
<dt>removable (Default: True)</dt>
<dd>Can the cards be removed? Individual card options can override this.</dd>
- col (REQUIRED) (Example: 2)
- The initial column for the top left of the card
<dt>row (REQUIRED) (Example: 2)</dt>
<dd>The initial row for the top left of the card</dd>
<dt>col-span (Example: 3)</dt>
<dd>The width of the card</dd>
<dt>row-span (Example: 3)</dt>
<dd>The height of the card</dd>
<dt>col-expand (Example: 4)</dt>
<dd>The width of the card when expanded</dd>
<dt>row-expand (Example: 4)</dt>
<dd>The height of the card when expanded</dd>
<dt>url (Example: 'http://www.google.com')</dt>
<dd>If given, the response of the ajax call will be placed in the content</dd>
<dt>title (Example: 'Sample Card')</dt>
<dd>If given, the title will display above the deck</dd>
<dt>expandable (Default: True)</dt>
<dd>Can the user expand the card? Individual card options can override this.</dd>
<dt>cards-expanded (Default: True)</dt>
<dd>Do the card start out expanded? Individual card options can override this.</dd>
<dt>draggable (Default: True)</dt>
<dd>Can the card be dragged? Individual card options can override this.</dd>
<dt>removable (Default: True)</dt>
<dd>Can the card be removed? This will override the deck option.</dd>
- Node.js 0.10+. If multiple versions are needed in your environment, consult NVM.
make
, such as from Xcode command line tools, build-essential, or Strawberry Perl.- A modern web browser, such as Mozilla Firefox 10+, Google Chrome 20+, or Microsoft IE 9+.
- tidy for linting HTML
- Install the smelting tools: node-sass and coffee-script.
npm install -g node-sass coffee-script
- Smelt the source into finely crafted JavaScript and CSS.
make
- Launch Demo Database.
make database
- Launch REST service.
make rest
- Launch the demo server.
make serve
- View the demo.
open http://localhost:3030/
- Run
make zip
. - Copy the resulting
.zip
file to your web application. - Expand the contents into
public/
or the like. - Move files and modify
index.html
as necessary.
sampleSites/
represents sample data sources for the main index.html
application.
Running make lint
yields tips for improving the code.