This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "sampleComponent": { | |
| "prototype": "ui/sample-component.reel", | |
| "properties": { | |
| "element": {"#": "sampleComponent"}, | |
| "contentController": {"@": "randomItems"} | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe("addRangeAtPathChangeListener call count", function () { | |
| it("should call the listener only once", function() { | |
| var object = Montage.create(); | |
| var foo = Montage.create(); | |
| var spy; | |
| // If I comment one of these two lines the test passes because | |
| // the twoway rangeContent() binding doesn't have any effect | |
| foo._array = []; | |
| foo.array = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var foo = Montage.create(); | |
| foo.array = []; | |
| foo.defineBinding("_array.rangeContent()", { | |
| "<->": "array.rangeContent()" | |
| }); | |
| foo.array = [1]; | |
| expect(foo.array).toEqual([1]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| layout: api | |
| title: "Substitution - MontageJS API" | |
| --- | |
| <nav class="subnav js-api-subnav"> | |
| <input id="index-search" type="search" placeholder="Search"><details open><summary>Types</summary><ul><li><a href="AbstractButton.html">AbstractButton</a></li><li><a href="AbstractCheckbox.html">AbstractCheckbox</a></li><li><a href="AbstractControl.html">AbstractControl</a></li><li><a href="AbstractImage.html">AbstractImage</a></li><li><a href="AbstractLink.html">AbstractLink</a></li><li><a href="AbstractNumberField.html">AbstractNumberField</a></li><li><a href="AbstractRadioButton.html">AbstractRadioButton</a></li><li><a href="AbstractSelect.html">AbstractSelect</a></li><li><a href="AbstractSlider.html">AbstractSlider</a></li><li><a href="AbstractTextArea.html">AbstractTextArea</a></li><li><a href="AbstractTextField.html">AbstractTextField</a></li><li><a href="AbstractToggleButton.html">AbstractToggleButton</a></li><li><a href="AbstractToggleSwitch.html">AbstractToggleSwitch</a></li><li><a href="AbstractVideo. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| <title> | |
| Main | |
| </title> | |
| <link rel="stylesheet" type="text/css" href="main.css"> | |
| <script type="text/montage-serialization"> | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <script type="text/montage-serialization">{ | |
| ":iteration": { | |
| "alias": "@repetition:iteration" | |
| }, | |
| "owner": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| <title>Main</title> | |
| <script type="text/montage-serialization"> | |
| { | |
| "owner": { | |
| "prototype": "ui/main.reel", | |
| "properties": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #rightCol { | |
| display: none; | |
| } | |
| #contentArea { | |
| width: 786px !important; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| p { | |
| font: 12px/16px Arial; | |
| margin: 10px 10px 15px; | |
| } | |
| button { | |
| font: bold 14px/14px Arial; | |
| margin-left: 10px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| p { | |
| font: 12px/16px Arial; | |
| margin: 10px 10px 15px; | |
| } | |
| button { | |
| font: bold 14px/14px Arial; | |
| margin-left: 10px; | |
| } |