Code Monkey home page Code Monkey logo

maria-listmodel's Introduction

maria-ListModel

maria.ObjectList, maria.ListModel, and maria.ListView added for order dependant views.

Usage

maria.ListModel and maria.ListView are designed to be ordered replacements to maria's maria.SetModel and maria.SetView respectively.

An optimisation exists for displaying a new order of models, without tearing down and re-creating the models and views. Raising a change event on a maria.ListModel with an array in the argument newTargets will avoid unnecessarily destroying and re-creating views for any targets that are still in the newTargets.

E.g.

this.dispatchEvent({type: 'change', newTargets: newChildModels});

Status

Beta - Currently used within a Maria MVC application.

License

MIT License. See the included LICENSE file for details.

maria-listmodel's People

Watchers

chendo avatar Ajith Hussain Subayar avatar Anthony Cole avatar  avatar James Cloos avatar  avatar Ed Bassett avatar Leah Garrett avatar  avatar  avatar  avatar  avatar  avatar Chris Chen avatar Geoffrey Harrison avatar Dara Bun avatar  avatar Andrew Cunningham avatar James Sandri avatar Navjeet Sandhu avatar Mark Johnson avatar Bastien Goepfert avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.