
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
backbone-react-ui
Advanced tools
React components for use with Backbone, Bootstrap and Backbone.Paginator
#Backbone-React-ui
React components for use with Backbone, Bootstrap and Backbone.Paginator
This project is based lightly on React-bootstrap but is focused on incorporating backbone to create a viewmodel system
##Usage:
npm install backbone-react-ui
var BackboneReactUI = require('backbone-react-ui');
React.renderComponent(BackboneReactUI.FilterablePageableTable({initialCollection:coll, maximumPages:5}), document.getElementById("container"));
##Dependencies:
##Components:
An demo of the FitlerablePageableTable can be found here http://securingsincity.github.io/backbone-react-ui/example.html
##Table
At its simplest this is a bootstrap table driven by a backbone collection.
###To use :
var testModel = Backbone.Model.extend();
var testCollection = Backbone.Collection.extend({
model : testModel,
tableFactory : {
'ID': {
field: 'id',
display: 'string',
sortable: true
},
'First Name' : {
field:'first_name',
display: 'string',
sortable: true
},
'Last Name' : {
field: 'last_name',
display: 'string',
sortable: true
},
'Edit' : {
action: 'edit',
display: 'button',
classes: 'btn-success'
},
'Remove' : {
action: 'delete',
display: 'button',
classes: 'btn-warning',
icon: 'glyphicon-remove'
},
}
});
var coll = new testCollection([], {
mode: "client",
comparator: function (model) {
return model.get("last_name");
},
});
The table factory object is made up of a field, how it should be displayed (for now a string or a button), an action, additional classes and an icon
This builds out the columns of that table
####Notes :
To instantiate the table
React.renderComponent(<Table striped hover condensed initialCollection={coll} />, document.getElementById("container"));
###PageableTable
This combines the paginator and the table functionality.
The only difference is that you would include a Backbone.PageableCollection this would allow the system to know the max number of pages and your current page.
The instantiation would be the same except with this time you could include the maximumPages
if you have many pages of data
React.renderComponent(<PageableTable striped hover condensed initialCollection={coll} maximumPages={5} />, document.getElementById("container"));
###FilterablePageableTable
This combines the paginator, the table functionality as well as filter/search.
The search can be driven by an API or just done on the client side
React.renderComponent(<FilterablePageableTable striped hover condensed initialCollection={coll} maximumPages={5} />, document.getElementById("container"));
FAQs
React components for use with Backbone, Bootstrap and Backbone.Paginator
The npm package backbone-react-ui receives a total of 22 weekly downloads. As such, backbone-react-ui popularity was classified as not popular.
We found that backbone-react-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.