diff --git a/README.md b/README.md index 1170269..a6188a2 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Usage 3. Load the Scroll Table Body plugin 4. Make sure you have a table with proper markup (``, `
`, and `` if you want it) 5. Call `.scrollTableBody()` on your table element, which by default displays 10 rows of your table and scrolls the rest -6. Optional: pass `rowsToDisplay` as an option. For example, `$('table').scrollTableBody({rowsToDisplay:5});` +6. Optional: pass `rowsToDisplay` or `pixelHeight` as an option. For example, `$('table').scrollTableBody({rowsToDisplay: 5});` or `$('table').scrollTableBody({pixelHeight: 200});` Example ------- diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..3fad61d --- /dev/null +++ b/bower.json @@ -0,0 +1,29 @@ +{ + "name": "jquery.scrollTableBody", + "version": "1.0.1", + "homepage": "https://github.com/mikeokner/jquery.scrollTableBody", + "authors": [ + "Michael Okner<thead>, <tbody>, and <tfoot> if you want it)
.scrollTableBody() on your table element, which by default displays 10 rows of your table and scrolls the restrowsToDisplay as an option. For example, $('table').scrollTableBody({rowsToDisplay:5});rowsToDisplay or pixelHeight as an option. For example, $('table').scrollTableBody({rowsToDisplay:5}); or $('table').scrollTableBody({pixelHeight: 200});