Giter Club home page Giter Club logo

mooveestar's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

chuckg19 paykroyd

mooveestar's Issues

Easier templating binding

When binding many things to a single element, it gets very lengthy. Would like a shorthand way of templating.

Example:

<li data-bind="name uuid accent privacy image" data-bind-privacy="data-private class" data-bind-uuid="data-uuid" data-bind-accent="class" data-bind-image="style:background-image" data-action="choose"></li>

Could more easily be written as:

<li data-bind="name uuid:data-uuid accent:class privacy:(data-private class) image:style:background-image" data-action="choose"></li>

Allow templates to be added via html/elements

Templates can only be added via .scrape(), which scrapes the current DOM, and directly with .regsiter(htmlString). This does not provide an easy way to add templates through template files, etc.

View / Template Documentation

rgthree,
Anyway you can put up some quick docs on the views / templates? An example of a template would be ideal. Or point me to something similar? Thanks!

Value should not change when binding

If a value is bound which is changed on the fly, it should not change the organic value.

Right now, this object:

{ src:'image.jpg' }

Bound to:

<div data-bind="src" data-bind-src="style:background-image title"></div>

Results in:

<div style="background-image:url(image.jpg)" title="url(image.jpg)"></div>

But should be

<div style="background-image:url(image.jpg)" title="image.jpg"></div>

Provide a way to bind only the data available to a template

Right now, binding a template means passing an entire object to the bind function. For instance:

<a data-bind="label url" data-bind-url="href"></a>

requires that both label and url be passed to bind. However (and more obviously with larger data sets) we may want to simply bind one w/o unbinding the other, say after an async call, etc.

Collection.move/remove should work by index

Right now, Collection.remove it will remove all instances of a model passed in, and Collection.move will move the first index of the model passed in.

However, since duplicates can now be added to the model, we may want to manipulate a single instance of a model by its index.

Implement a removeAll for Collection

Collection has no way of removing all items, except to pass your models to remove. However, if you attempt to call collection.remove(collection.getAll()) the iteration only removes half the items since it's modifying the same array.

Note, MooTools Array equivalent is named Array.empty

Inner table elements cannot be used as templates

We can't have table elements like <tr>, <td>, etc. used as the root for a template because of the way the templates are stored as DOM markup. Because they are not actually attached to a <table> correctly, they get destroyed and only their children are returned correctly.

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.