Skip to content

A collection of reusable, extensible UI views based on Bootstrap js components, for your Backbone apps.

Notifications You must be signed in to change notification settings

0m15/Backbone-Vertebres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Backbone Vertebres

Includes the following ui patterns:

DialogView

An extensible, reusable, customizable dialog view built on top of Twitter bootstrap modals plugin.

###requirements

  • jQuery >= 1.7.1
  • Bootstrap modal plugin

###options

Param name Type Description
customClass String A custom class to be attached to the DOM
title String The dialog title
message String The dialog message
buttons Array An array holding buttons that fires callbacks
onAction Function Callback invoked when user click buttons. It passes the event object
var options = {
  buttons : [{'label' : 'ok', 'class' : 'primary'}]
}

###example var dialog = DialogView.show('title', { onAction : function(ev) { console.log(ev.currentTarget.className) } }) dialog.title('reset the title') dialog.message('reset the message') dialog.close() // close the dialog

About

A collection of reusable, extensible UI views based on Bootstrap js components, for your Backbone apps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published