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"> | |
<title>Dumber Gist</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"> | |
<base href="/"> | |
</head> | |
<!-- | |
Dumber Gist uses dumber bundler, the default bundle file |
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
<template> | |
<require from="CustomElement2"></require> | |
<label>Custom Element 1</label> | |
<br /> | |
<custom-element2 items.bind="items2"> | |
<template replace-part="item"> | |
<li repeat.for="item of items"> | |
<label>${item.text}</label> | |
</li> | |
</template> |
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
<template> | |
<require from="CustomElement2"></require> | |
<label>Custom Element 1</label> | |
<br /> | |
<input value.bind="query" /> | |
<br /> | |
<custom-element2 items.bind="items2"> | |
<template replace-part="item"> | |
<li repeat.for="item of items"> | |
<label click.delegate="select(item, $event)"> |
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
<template> | |
<label>Debounce: ${debounce}</label> | |
<br /> | |
<input value.bind="inputValue & debounce: debounce" /> | |
<span>: ${inputValue}</span> | |
<br /> | |
<button click.delegate="toggleDebounceLength()">Toggle Debounce Length</button> | |
</template> |
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
<template> | |
<div>Stuff here</div> | |
<button click.delegate="loadm1($event)">Load M1</button> | |
<button click.delegate="loadm2($event)">Load M2</button> | |
<button click.delegate="loadm2again($event)">Load Another M2</button> | |
<div id="m1holder"></div> | |
<div id="m2holder"></div> | |
<div id="m2holderagain"></div> | |
</template> |
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
<template> | |
<require from="./switch"></require> | |
<span>${toggleState}</span><br /> | |
<label for="toggle">Toggle: </label> | |
<switch id="toggle" value.bind="toggleState"></switch> | |
</template> |
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
<template> | |
<require from="./switch"></require> | |
<span>${toggleState}</span><br /> | |
<label for="toggle">Toggle: </label> | |
<switch id="toggle" value.bind="toggleState"></switch> | |
</template> |
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
<template> | |
<require from="./switch"></require> | |
<span>${toggleState}</span><br /> | |
<label for="toggle">Toggle: </label> | |
<switch id="toggle" value.bind="toggleState" /> | |
</template> |
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
<template> | |
<require from="./customListCustomElement"></require> | |
<custom-list items.bind="tracks"> | |
<template replace-part="title-override">Nothing to see here</template> | |
</custom-list> | |
</template> |
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
<template> | |
<require from="./customListCustomElement"></require> | |
<custom-list items.bind="tracks"> | |
<div slot="title-template">Some song</div> | |
<div slot="content-template"> | |
<div repeat.for="line of item.content"> | |
Line: ${$index + 1}. ${line.lyric} | |
</div> | |
</div> |
NewerOlder