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

marionette.collectionhelper

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marionette.collectionhelper

Proxy helpers for collections. This replaces the sort/filter functions on `Marionette.View` and the Backbone Paginator library.

  • 0.0.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Marionette Collection Helper

This library is a proof-of-concept for how I see CollectionView being managed in future versions of Marionette.

Setting Up

Install via NPM:

npm install marionette.collectionhelper

You can then include it in your JS views:

import { Filter } from 'marionette.collectionhelper';

const NameFilter = Filter.extend({
  filterFunction: function(term) {
    return this.where({
      name: term
    });
  }
});

filter = new NameFilter(new Collection([{name: 'Sarah'}]));
filter.search('Sarah');

Guide

The Docsite outlines how to use this library and how it works with Marionette.

Building and Testing

To build and test the collection helper library:

npm i --no-progress
npm run compile
npm t

Rationale

Marionette's CollectionView has many issues regarding how it handles sorting and filtering. For full information, see the Rationale document.

Keywords

FAQs

Package last updated on 09 Sep 2016

Did you know?

Socket

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.

Install

Related posts

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