balderdashy / mast

UI conventions built on top of Backbone.JS
MIT License
81 stars 14 forks source link

UI Toolkit #121

Closed mikermcneil closed 11 years ago

mikermcneil commented 11 years ago

New component and model interfaces

(available on every component and model)

Lock/Mutex Interface

Useful to prevent race conditions during animations, modal dialogs, loading, etc.

Component events

So if you have: myModel.createdAt === new Date()

Then you might have: myModel._since_createdAt === 'just now

Then, however fast your frequency is set to, you'll see the computed attribute update (which should trigger bindings in your component). The "ago" number will go up. or myModel._since_createdAt === '45 seconds ago

Model options

Uses built-in templates which are well documented and may be overridden. Bundled with Foundation framework LESS files.

Utility

Loading Spinner

ui.spin

ui.tooltip Meant to be appended to the app region, this tooltip description box will be automatically attached where your mouse is in a sensible way. It's template receives a handful of well documented classes as the tooltip needs to be dynamically repositioned at different areas of the screen, and is fairly simple to extend.

Forms

Datepicker

ui.datepicker Also includes support for date ranges.

Hour picker

ui.hourpicker Also includes support for same-day hour ranges.

Select

ui.select HTML+CSS, friendly custom, mobile-compatible multiple-choice dropdown menu, along w/ associated logic+hacks

Auto-complete

ui.searchable Extendable built-in interface for creating autocomplete fields. Contains logic for firing global search events, namespaced as you like.

List View

ui.progressbar name says it all

D3 Context

ui.d3 Built-in component used for embedding a d3 context. Accepts a backbone model, collection, or both, and has all the expected hooks for data bindings

mikermcneil commented 11 years ago

@ghernandez345 got any ideas here?

ghernandez345 commented 11 years ago

there look good. I would also consider a modal window.

mikermcneil commented 11 years ago

Closing this, since it's not part of the core.