Sing App Documentation

Navigation

  1. Dashboard
  2. Widgets

Dashboard

Basic Widget

Sing widget has really intuitive structure and may contain three parts: header, body and footer. But any of them can be omitted. So the basic widget structure looks like:

<section class="widget">
    <header>
        <h3>Header</h3>
    </header>
    <div class="widget-body">
        Body
    </div>
    <footer>
        Footer
    </footer>
</section>

Widget will take as much place as inner content needs, but you can control its size with these classes: .widget-sm, .widget-md.

Widget Colors

Any widget (generally speaking - any element) may be styled with .bg-primary, .bg-info and other .bg-{color} classes. The whole list is:

Widget Controls

See Grid.

Widgets

Statistic Boxes

Boxes use Metro JS for widget & numbers sliding.

Sales and Visits Charts

Built with Flot JS.

Weather Widget

Uses js canvas-drawing library for showing weather icons - Skycons.

Nasdaq Widget

Built with jQuery Sparkline. This is the most easiest lib to draw charts. You will find it in lots of place in Sing.

Yearly Distributions Map

Inspired by Mapael's world population example. Map initialization code is in initYearsMap function in widgets.js file.

Recent Chats

Is basically just markup with SlimScroll attached. SlimScroll is a defult scrolling solution in Sing. You will find it in lots of places.

Quick View Widget

Cool dark gray background is easily achievable with .bg-gray-dark class. Realtime chart is built with Rickshaw.

Social Widgets

Same as statistic boxes use Metro JS to slide content. Green shares widget is built with Rickshaw.