How to use the montage.Montage.create function in montage

To help you get started, we’ve selected a few montage 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 montagejs / montage / test / ui / alternation / switch-path-iteration.reel / switch-path-iteration.js View on Github external
var Montage = require("montage").Montage,
    Component = require("montage/ui/component").Component,
    RangeController = require("montage/core/range-controller").RangeController;

exports.SwitchPathIteration = Montage.create(Component, {
});
github tastejs / todomvc / labs / architecture-examples / montage / ui / main.reel / item-count-converter.js View on Github external
var Montage = require("montage").Montage,
	Converter = require("montage/core/converter/converter").Converter;

exports.ItemCountConverter = Montage.create(Converter, {

	convert: {
		value: function(itemCount) {
			return (1 === itemCount) ? "item" : "items";
		}
	}

});
github montagejs / digit / ui / input-text.reel / input-text.js View on Github external
var Montage = require("montage").Montage,
    Component = require("montage/ui/component").Component,
    NativeInputText = require("native/ui/input-text.reel").InputText;

exports.InputText = Montage.create(NativeInputText, {

    hasTemplate: {value: true},

    enterDocument: {
        value: function() {
            NativeInputText.enterDocument.apply(this, arguments);
            this.element.classList.add("digit-InputText");
        }
    }
});
github montagejs / digit / ui / textarea.reel / textarea.js View on Github external
var Montage = require("montage").Montage,
    Component = require("montage/ui/component").Component,
    NativeTextarea = require("native/ui/textarea.reel").Textarea;

exports.Textarea = Montage.create(NativeTextarea, {

    hasTemplate: {value: true},

    enterDocument: {
        value: function() {
            NativeTextarea.enterDocument.apply(this, arguments);
            this.element.classList.add("digit-Textarea");
        }
    }
});

montage

Build your next application with a browser based platform that really gets the web.

BSD-3-Clause
Latest version published 5 years ago

Package Health Score

46 / 100
Full package analysis