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> | |
<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 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="./dyn-field"></require> | |
<form> | |
<dyn-field | |
repeat.for="prop of properties" | |
label.bind="prop.label" | |
value.bind="model | get:model:prop.expression" | |
errors.bind="errors | get:errors:prop.expression"></dyn-field> | |
</form> |
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> | |
<template if.bind="editMode"> | |
<input value.bind="editValue"> | |
<button click.delegate="save()">save</button> | |
<button click.delegate="editMode = false">cancel</button> | |
</template> | |
<template else> | |
<h1>${message} <button click.delegate="enterEditMode()">edit</button></h1> | |
</template> | |
</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> | |
<input value.bind="message"> | |
<br> | |
<p>Message: ${message}</p> | |
<button click.trigger="tryChange()">jQuery('input').val('test').trigger('change')</button> | |
<button click.trigger="tryInput()">jQuery('input').val('test2').trigger('input')</button> | |
</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> | |
<input type="date" value.bind="value | momentDate"> | |
<p>Value: ${value}</p> | |
</template> |