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 role="form" class="form-horizontal" with.bind="user"> | |
| <div class="form-group"> | |
| <label class="col-sm-2 control-label">First Name</label> | |
| <div class="col-sm-3"> | |
| <input value.bind="firstName & validate" type="text" placeholder="first name" class="form-control"> | |
| </div> | |
| </div> | |
| <div class="form-group"> |
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
| import {ValidateResult} from 'aurelia-validation'; | |
| export class AjvValidator { | |
| cache = new Map; | |
| ajv = new Ajv({ v5: true, allErrors: true, format: 'full' }); | |
| validateObject(object) { | |
| this.parseSchema(object); | |
| let schemaId = this._schemaId(object); | |
| if (!this.cache.has(schemaId)) { |
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
| import {ValidateResult} from 'aurelia-validation'; | |
| export class AjvValidator { | |
| cache = new Map; | |
| ajv = new Ajv({ v5: true, allErrors: true, format: 'full' }); | |
| validateObject(object) { | |
| this.parseSchema(object); | |
| let schemaId = this._schemaId(object); | |
| if (!this.cache.has(schemaId)) { |
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="./text-box"></require> | |
| <require from="./date-picker"></require> | |
| <div> | |
| Text Box | |
| <text-box value.bind="text"></text-box> | |
| </div> | |
| <div> | |
| Date Picker |
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="bootstrap/css/bootstrap.css"></require> | |
| <ul> | |
| <li repeat.for="nav of router.navigation"> | |
| <a href="nav.href">${nav.tile}</a> | |
| </li> | |
| </ul> | |
| <router-view layout-view="layout-with-sidebar.html"></router-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> | |
| <require from="bootstrap/css/bootstrap.css"></require> | |
| <nav class="navbar navbar-default" role="navigation"> | |
| <div class="navbar-header"> | |
| <a class="navbar-brand" href="#"> | |
| <i class="fa fa-user"></i> | |
| <span> | |
| Open API Designer | |
| </span> | |
| </a> |
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="./grouped-sort"></require> | |
| <table> | |
| <template repeat.for="[group, items] of myArray | groupedSort"> | |
| <tr> | |
| <td> | |
| ${group} | |
| </td> | |
| </tr> | |
| <tr repeat.for="item of items"> |
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>Alert ${type}</h1> | |
| </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="container-fluid"> | |
| <div class="container-fluid"> | |
| <h1>Bootstrap Method (Responsive)</h1> | |
| <p><i>The second column will wrap down below on smaller screens... | |
| if you see it in one column, try widening the screen</i></p> | |
| <div class="row"> | |
| <div class="col-xs-6"> | |
| <div repeat.for="field of myData | odds"> | |
| <p><b>${field.Key}:</b> ${field.value}</p> |
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> | |
| <ul> | |
| <li repeat.for="row of router.navigation" class="${row.isActive ? 'active' : ''}"> | |
| <a href.bind="row.href">${row.title}</a> | |
| <ul> | |
| <li repeat.for="sub of row.settings.subRoutes"> | |
| <a route-href="route.bind: row.config.name; params.bind: sub.params">${sub.name}</a> | |
| </li> | |
| </ul> | |
| </li> |