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> | |
<md-input md-autocomplete="values.bind: values;" md-label="put some text here" md-value.bind="textValue" md-disabled.bind="isBusy"></md-input> | |
<md-progress md-type="circular" md-color="green" show.bind="isBusy"></md-progress> | |
</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> | |
Nested template elements in Internet Explorer 11 | |
<table> | |
<thead> | |
<tr> | |
<th>Date</th> | |
<th>Amount</th> | |
</tr> |
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="./my-element"></require> | |
<require from="./my-template"></require> | |
<h1>Aurelia has been loaded</h1> | |
<my-element> | |
<my-template model.bind="appModel"> | |
element property: ${elementProperty}<br/> | |
model title: ${title} | |
</my-template> | |
</my-element> |
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> | |
<select md-select="label: Label" value.two-way="model.value"> | |
<option repeat.for="item of model.items" model.bind="item">${item.name}</option> | |
</select> | |
<div> | |
selected: ${model.value.id} | |
</div> | |
<hr/> | |
<select md-select="label: Label" value.two-way="model.selectedValue"> | |
<option repeat.for="item of model.items" model.bind="item.id" selected.bind="item.id == model.selectedValue">${item.name}</option> |
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="materialize/dist/css/materialize.css"></require> | |
<select md-select="label: Label" value.two-way="model.selectedValue"> | |
<option repeat.for="item of model.items" model.bind="item.someId">${item.name}</option> | |
</select> | |
<div> | |
selected: ${model.selectedValue} | |
</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="materialize/dist/css/materialize.css"></require> | |
<ul md-collapsible="accordion: true;"> | |
<template repeat.for="model of elements"> | |
<compose containerless view-model="testModel" model.bind="model"></compose> | |
</template> | |
</ul> | |
</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="materialize/dist/css/materialize.css"></require> | |
<div class="input-field col s12"> | |
<select md-select ref="option" value.bind="optionSelect"> | |
<option value="" disabled selected>Choose your option</option> | |
<option value="1">Option 1</option> | |
<option value="2">Option 2</option> | |
<option value="3">Option 3</option> | |
</select> | |
<label>Materialize Select</label> |
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="materialize/dist/css/materialize.css"></require> | |
<div class="input-field col s12"> | |
<select ref="option" value.bind="optionSelect"> | |
<option value="" disabled selected>Choose your option</option> | |
<option value="1">Option 1</option> | |
<option value="2">Option 2</option> | |
<option value="3">Option 3</option> | |
</select> | |
<label>Materialize Select</label> |
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
// https://github.com/Microsoft/TypeScript/issues/5073 | |
declare module 'flatpickr' { | |
class Flatpickr { | |
constructor(element: Element, options?: any); | |
destroy(); | |
} | |
namespace Flatpickr {} | |
export = Flatpickr; | |
} |
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="materialize/dist/css/materialize.css"></require> | |
<div> | |
<select multiple md-select="disabled.bind: isBusy;" md-select.ref="select" value.two-way="selectedMeal"> | |
<option disabled>Select your meal</option> | |
<option repeat.for="meal of food" model.bind="meal">${meal.name}</option> | |
</select> | |
<md-progress md-type="circular" md-size="small" show.bind="isBusy"></md-progress> | |
<p> |