How to use the alloy.Backbone function in alloy

To help you get started, we’ve selected a few alloy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github appcelerator / alloy / test / apps / advanced / proxy_property_requires / _generated / android / alloy / widgets / com.foo.widget / controllers / section.js View on Github external
id: "__alloyId5"
    });
    $.__views.section.add($.__views.__alloyId5);
    $.__views.__alloyId6 = Ti.UI.createTableViewRow({
        height: "50dp",
        title: "android row",
        id: "__alloyId6"
    });
    $.__views.section.add($.__views.__alloyId6);
    $.__views.section && $.addTopLevelView($.__views.section);
    exports.destroy = function() {};
    _.extend($, $.__views);
    _.extend($, exports);
}

var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;

module.exports = Controller;
github appcelerator / alloy / test / apps / testing / ALOY-1152 / _generated / android / alloy / controllers / index.js View on Github external
$.__views.__alloyId20.items = __alloyId22;
    var __alloyId25 = [];
    __alloyId25.push($.__views.__alloyId20);
    $.__views.__alloyId0 = Ti.UI.createListView({
        sections: __alloyId25,
        templates: __alloyId1,
        id: "__alloyId0"
    });
    $.__views.index.add($.__views.__alloyId0);
    exports.destroy = function() {};
    _.extend($, $.__views);
    $.index.open();
    _.extend($, exports);
}

var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;

module.exports = Controller;
github appcelerator / alloy / test / apps / testing / ALOY-983 / _generated / ios / alloy / controllers / popover_navwin.js View on Github external
});
    $.__views.__alloyId3.add($.__views.__alloyId4);
    $.__views.popViewNavWin = Ti.UI.iOS.createNavigationWindow({
        window: $.__views.__alloyId3,
        id: "popViewNavWin",
        backgroundColor: "green",
        height: 300,
        width: 250
    });
    $.__views.popover.contentView = $.__views.popViewNavWin;
    exports.destroy = function() {};
    _.extend($, $.__views);
    _.extend($, exports);
}

var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;

module.exports = Controller;
github appcelerator / alloy / test / apps / testing / ALOY-1122 / _generated / ios / alloy / controllers / index.js View on Github external
doClick ? $.addListener($.__views.__alloyId0, "click", doClick) : __defers["$.__views.__alloyId0!click!doClick"] = true;
    $.__views.__alloyId1 = Ti.UI.createImageView({
        image: "/appcelerator.png",
        bottom: 0,
        id: "__alloyId1"
    });
    $.__views.index.add($.__views.__alloyId1);
    exports.destroy = function() {};
    _.extend($, $.__views);
    var util = require("util");
    $.index.open();
    __defers["$.__views.__alloyId0!click!doClick"] && $.addListener($.__views.__alloyId0, "click", doClick);
    _.extend($, exports);
}

var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;

module.exports = Controller;
github appcelerator / alloy / test / apps / testing / ALOY-799 / _generated / android / alloy / widgets / widget1 / controllers / widget.js View on Github external
$.__views.widget = Ti.UI.createLabel({
        text: "I'm widget #1",
        backgroundColor: "#a00",
        color: "#fff",
        height: "70dp",
        width: "200dp",
        top: "50dp",
        id: "widget"
    });
    $.__views.widget && $.addTopLevelView($.__views.widget);
    exports.destroy = function() {};
    _.extend($, $.__views);
    _.extend($, exports);
}

var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;

module.exports = Controller;
github appcelerator / alloy / test / apps / testing / ALOY-659 / _generated / android / alloy / controllers / index.js View on Github external
var exports = {};
    $.__views.index = Ti.UI.createWindow({
        backgroundColor: "#fff",
        fullscreen: false,
        exitOnClose: true,
        id: "index"
    });
    $.__views.index && $.addTopLevelView($.__views.index);
    exports.destroy = function() {};
    _.extend($, $.__views);
    $.index.open();
    alert("android");
    _.extend($, exports);
}

var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;

module.exports = Controller;
github appcelerator / alloy / test / apps / testing / ALOY-609 / _generated / android / alloy / controllers / button.js View on Github external
},
        touchEnabled: false,
        id: "label"
    });
    $.__views.button.add($.__views.label);
    exports.destroy = function() {};
    _.extend($, $.__views);
    var args = arguments[0] || {};
    var label = args.label || "";
    args.label && ($.label.text = args.label);
    __defers["$.__views.button!touchstart!doTouchstart"] && $.addListener($.__views.button, "touchstart", doTouchstart);
    __defers["$.__views.button!touchend!doTouchend"] && $.addListener($.__views.button, "touchend", doTouchend);
    _.extend($, exports);
}

var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;

module.exports = Controller;
github appcelerator / alloy / test / apps / testing / ALOY-874 / _generated / mobileweb / alloy / controllers / index.js View on Github external
id: "index"
    });
    $.__views.index && $.addTopLevelView($.__views.index);
    exports.destroy = function() {
        __alloyId13 && __alloyId13.off("fetch destroy change add remove reset", __alloyId14);
        __alloyId29 && __alloyId29.off("fetch destroy change add remove reset", __alloyId30);
    };
    _.extend($, $.__views);
    $.index.open();
    $.test.add({
        title: "this is my row"
    });
    _.extend($, exports);
}

var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;

module.exports = Controller;
github pablorr18 / TiFlexiGrid / Image Gallery Sample / Resources / alloy / controllers / index.js View on Github external
params: {
                    padding: 5,
                    showTitle: false,
                    backgroundColor: "#eee",
                    gridColor: "#ccc"
                },
                width: $.fgWin.size.width
            };
            $.fg.createGrid(params);
        }
    });
    $.fgWin.open();
    _.extend($, exports);
}

var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;

module.exports = Controller;
github appcelerator / alloy / samples / apps / basics / markup_require / _generated / mobileweb / alloy / controllers / bottom.js View on Github external
$.__views.b = Ti.UI.createButton({
        width: Ti.UI.SIZE,
        height: Ti.UI.SIZE,
        title: "Click me",
        bottom: 20,
        id: "b"
    });
    $.__views.bottom.add($.__views.b);
    exports.destroy = function() {};
    _.extend($, $.__views);
    Ti.API.info("bottom controller is executing");
    require("specs/bottom")($);
    _.extend($, exports);
}

var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;

module.exports = Controller;