This file contains 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
<template> | |
<require from="big"></require> | |
if i have a custom element before a compose, and the custom element is big enough, compose should activate twice | |
<section style="display: flex; max-height: 100px;"> | |
<big count.bind="200" style="flex: 1"></big> | |
<compose style="flex: 1" view-model="comp" model.bind="{}"></compose> | |
</section> | |
</template> |
This file contains 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
<template> | |
<require from="el.html"></require> | |
<el></el> | |
<el>hi</el> | |
</template> |
This file contains 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
<template> | |
<require from="big"></require> | |
if i have a custom element before a compose, and the custom element is big enough, compose should activate twice | |
<section style="display: flex; max-height: 100px;"> | |
<big count.bind="200" style="flex: 1"></big> | |
<compose style="flex: 1" view-model="comp" model.bind="{}"></compose> | |
</section> | |
</template> |
This file contains 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
<template> | |
<require from="sce"></require> | |
<div change.delegate="log($event)"> | |
<sce value.two-way="selected" options.bind="opts" ref="ce"></sce> | |
<select value.bind="selected" ref="sel"> | |
<option repeat.for="opt of opts">${opt}</option> | |
</select> | |
</div> | |
<pre repeat.for="event of events">${event}</pre> | |
</template> |
This file contains 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
<template> | |
<require from="fancy-table.css"></require> | |
<require from="table-custom-element"></require> | |
<require from="value-converters"></require> | |
<require from="sortable-custom-attribute"></require> | |
<require from="reorderable-custom-attribute"></require> | |
<require from="resizable-custom-attribute"></require> | |
<require from="table-custom-element"></require> | |
<require from="row-custom-element"></require> | |
<style> |
This file contains 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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>GistRun</title> | |
<style> | |
section { | |
// give children a row-style layout | |
display: flex; | |
// and fill the page |
This file contains 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
import { JsonService } from './jsonService'; | |
export class ConfigService extends JsonService { | |
constructor() { | |
super('path/to/config.json'); | |
} | |
} |
This file contains 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
<template> | |
<p>a</p> | |
<a href="#b">b</a> | |
<compose view-model="comp"></compose> | |
</template> |
This file contains 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
<template> | |
<compose view-model="comp" view-model.ref="compose"></compose> | |
<button click.delegate="canDeactivate()">can deactivate?</button> | |
<button click.delegate="deactivate()">deactivate?</button> | |
<p>Could deactivate: ${couldDeactivate}</p> | |
<p>Deactivated: ${deactivated}</p> | |
</template> |
This file contains 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
<template> | |
<compose view-model="comp" view-model.ref="compose"></compose> | |
<button click.delegate="canDeactivate()">can deactivate?</button> | |
<button click.delegate="deactivate()">deactivate?</button> | |
<p>Could deactivate: ${couldDeactivate}</p> | |
<p>Deactivated: ${deactivated}</p> | |
</template> |