Skip to content

New syntax and bootstrapping

Compare
Choose a tag to compare
@tuupola tuupola released this 26 Oct 19:16
· 76 commits to master since this release

New alternate but prettier syntax for remote version. Allows you to pass all settings as one hash. Also adds support for bootstrapping selects by passing JSON data in settings. Bootstrapping is used to avoid making the initial AJAX call.

$("#series").remoteChained({
    parents : "#mark",
    url : "/api/series.json",
    bootstrap : {
        "--" : "--",
        "series-3" : "3 series",
        "series-5" : "5 series",
        "series-6" : "6 series",
        "selected" : "series-3"
    }
});

Add possibility to optionally send additional values of non chained inputs when using remote version.

$("#transmission").remoteChained({
    parents: "#engine",
    url: "/api/transmissions.json",
    values: "#model"
});

Also adds support for Zepto and Bower.