Skip to content

Commit

Permalink
Merge branch 'master' of github.com:linkedin/Backbone.TableView
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbottaro committed Sep 25, 2012
2 parents 80db9ba + ce3bd56 commit 7ef217d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 33 deletions.
22 changes: 1 addition & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ of filters (see supported filters below):
last_login:
header: "Last Login Time"
draw: (model) ->
new Date(model.get 'time')
description:
header: "Description"
nosort: true
draw: (model) ->
some_weird_formatting_function(model.get('some_text'))
new Date(model.get "time")
pagination: true
search:
query: "name"
Expand All @@ -36,12 +31,6 @@ of filters (see supported filters below):
init: new Date()
get: (val) ->
... process the date val ...
to:
type: "input"
className: "date"
init: new Date()
get: (val) ->
... process the date val ...
my_button:
type: "button"
status:
Expand All @@ -52,18 +41,9 @@ Use it as any other Backbone View, either setting the "el" property at
creation, or letting backbone create if for you, eg (Users is a regular
backbone collection):

user_table = new UserTableView collection: new Users(), el: "#myusertable"
user_table.render()

or

user_table = new UserTableView collection: new Users()
$("#somewhere").html user_table.render().el

### Filters

Supported filters are "input", "button" and "options".

## License

Apache Public License (APL) 2.0
Expand Down
7 changes: 1 addition & 6 deletions backbone.tableview.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ Optionally it supports pagination, search, and any number of filters
header: "Last Login Time"
draw: (model) ->
new Date(model.get 'time')
description:
header: "Description"
nosort: true
draw: (model) ->
some_weird_formatting_function(model.get('some_text'))
pagination: true
search:
query: "name"
Expand All @@ -36,7 +31,7 @@ Optionally it supports pagination, search, and any number of filters
init: new Date()
get: (val) ->
... process the date val ...
my_btn:
my_button:
type: "button"
status:
type: "option"
Expand Down
7 changes: 1 addition & 6 deletions backbone.tableview.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7ef217d

Please sign in to comment.