Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

backbone.marionette-lazy-loading-module

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone.marionette-lazy-loading-module - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0

40

package.json
{
"name": "backbone.marionette-lazy-loading-module",
"description": "Lazy loading data module for backbone.marionette",
"version": "0.0.1",
"directory": "backbone.marionette-lazy-loading-module",
"keywords": [
"backbone",
"marionette",
"lazyloading",
"requirejs",
"underscorejs",
"jquery",
"handlebars",
"javacript",
"front-end",
"web",
"development"
],
"homepage": "https://github.com/denar90/backbone.marionette-lazyLoading-module",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/denar90/backbone.marionette-lazyLoading-module"
"url": "git+https://github.com/npm/deprecate-holder.git"
},
"contributors": [{
"name": "Denysov Artem",
"email": "denysov.artem@gmail.com"
}],
"dependencies": {
"backbone.marionette": "2.4.2",
"requirejs": "*",
"requirejs-text": "*",
"handlebars": "3.0.3"
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/npm/deprecate-holder/issues"
},
"license": "MIT"
"homepage": "https://github.com/npm/deprecate-holder#readme"
}

@@ -1,93 +0,5 @@

#Backbone.marionette lazy loading module
# Deprecated Package
Lazy loading data module for backbone.marionette
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.
##Getting started
###Quick start
* Clone the repository: `git clone https://github.com/denar90/backbone.marionette-lazyLoading-module.git`
* Add dependency into your `bower.json` file and run `bower install`
##Usage
* Configure your requirejs file
````javascript
require.config({
...
paths: {
...
app: 'path-to-app-file',
lazyLoading: 'path-to-module' // example 'modules/backbone.marionette-lazyLoading-module/'
...
}
...
});
````
* Include and run module
````javascript
//for example
define(['marionette', 'lazyLoading/lazyLoading'], function(Marionette, lazyLoading) {
var App = new Marionette.Application();
App.addRegions({
mainRegion: '#app'
});
App.on("start", function() {
if (Backbone.history) {
Backbone.history.start();
lazyLoading.start({
moduleRegion: App.mainRegion,
getDataUrl: 'getData.php',
offset: 0,
limit: 10
});
}
});
return App;
});
````
##Options
#### moduleRegion
* type: Object
Required param.
Region where data will be past
#### getDataUrl
* type: String
* default: ''
Url to getting data from server. Module automatically will be build url with `offset` and `limit`.
#### offset
* type: String
* default: 0
Data offset. Says server from what number get data
#### limit
* type: String
* default: 10
Data limit for one request.
#### listTemplate
* type: string
* default: ''
Template for all list of data. It's kind of container. If `listTemplate` isn't set module will use default.
#### itemTemplate
* type: string
* default: ''
Template for each item. If `itemTemplate` isn't set module will use default.
Please contact support@npmjs.com if you have questions about this package.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc