From a4a4564f760bb1bcd541366186cd46488d5a569b Mon Sep 17 00:00:00 2001 From: Daniel Beauchamp Date: Tue, 30 Oct 2012 05:16:35 -0400 Subject: Added new widgets, and made them more flexible. Ready for 0.1.3! --- README.md | 191 +------------------------------------------------------------- 1 file changed, 1 insertion(+), 190 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 13b00c7..cdcc722 100644 --- a/README.md +++ b/README.md @@ -1,190 +1 @@ -# Dashing! - -A handsome dashboard framework solution - -## Introduction - -Dashing is a framework for building web-based dashboards. - -Features: - - - Custom widgets! Built using whatever HTML/Coffeescript wizardry you posses - - Multiple dashboards! You can have many different views all hosted in the same location - - Shared widgets! It's easy to have have the same widget show up on different dashboards - - Push or pull data, you decide! - - Responsive grid layout! Your dashboard will look good on any sized screen - -## Installation and Setup - - 1. Install the gem from the command line: - - ```gem install dashing``` - - 2. Generate a new project: - - ```dashing new sweet_dashboard_project``` - - 3. Change your directory to ```sweet_dashboard_project``` and start Dashing - - ```dashing start``` - - 4. Point your browser at [localhost:3000](http://localhost:3000) - -## Building a dashboard - -```main.erb``` contains the layout for the default dashboard which is accessible at ```/```. -You can add additional dashboards with by running ```dashing COMMAND THINGY new_view``` which creates a ```new_view.erb``` file in ```dashboards/```. -That new view will be accessible at ```localhost:3000/new_view``` - -## Widgets - -Widgets are represented by a ```div``` element with ```data-id``` and ```data-view``` attributes. eg: - -```HTML -
-``` - -The ```data-id``` attribute is used to set the **widget ID** which will be used when to push data to the widget. Two widgets can have the same widget id, allowing you to have the same widget in multiple dashboards. - -```data-view``` specifies the type of widget what will be used. This field is case sensitive and must match the coffeescript class of the widget. See making your own widget section for more details. - -This ```
``` can also be used to configure your widgets. For example, the pre-bundled widgets let you set a title with ```data-title="Widget Title"```. - -### Layout - -Getting the style and layout right when you have multiple widgets is hard, that's why we've done it for you. By default Dashing uses [masonry](http://masonry.desandro.com/) to produce a grid layout. If it can, your dashboard will fill the screen with 5 columns. If there isn't enough room though, widgets will be reorganized to fit into fewer columns until you are left with a single column - -Examples here? - -Masonry requires that your widgets be contained within a ```