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> | |
<h2>${heading}</h2> | |
</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="container"></require> | |
<ck-container> | |
<compose repeat.for="item of items" | |
view="${item.view}.html" | |
view-model="${item.view}" | |
model.bind="item.model" | |
></compose> | |
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> | |
<input type="text" value.bind="foo.bar" /> | |
<button click.delegate="fireSignal()">Fire signal</button> | |
<div> | |
Without Signal: | |
<div><pre>${foo | toJson}</pre></div> | |
</div> | |
<div> | |
With Signal: | |
<div><pre>${foo | toJson & signal:'my-signal'}</pre></div> |
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="./inline-view"></require> | |
<inline-view></inline-view> | |
</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> | |
<input ref="myinput" type="text" value.bind="mymodel.test"> | |
</div> | |
<div> | |
The value of my input is: ${mymodel.test} | |
</div> | |
<div> | |
<input type="button" value="Change Me" click.delegate="changeValByRef()"> | |
</div> |
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="tabs"></require> | |
<require from="tab"></require> | |
<tabs> | |
<tab></tab> | |
<tab></tab> | |
</tabs> | |
</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 class="row"> | |
<div class="col-sm-3" repeat.for="image of images"> | |
<div class="thumbnail"> | |
<img src.bind="image" /> | |
<div class="caption text-center"> | |
<button type="button" class="btn btn-default" click.trigger="setCoverPhoto($index)" data-toggle="tooltip" title="Use as cover">Set Cover</button> | |
<button type="button" class="btn btn-default" click.trigger="removeAttachment($index)" data-toggle="tooltip" title="Remove photo">Remove</button> | |
</div> | |
</div> |
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="./autocomplete"></require> | |
<div>Type something in the input and the message should change into 'calculatedPrice()!'</div> | |
<h1>${message}</h1> | |
<autocomplete selected.delegate="calculatePrice()"></autocomplete> | |
</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> | |
<form> | |
<label repeat.for="item of items"> | |
<input type="radio" name="test" value.bind="item" checked.bind="selected"> | |
${item} | |
</label> | |
<button type="reset">Reset</button> | |
</form> | |
selected = '${selected}' | |
</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> | |
<h1>${message}</h1> | |
</template> |