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
var FormView = require('ampersand-form-view'); | |
var InputView = require('ampersand-input-view'); | |
var formEl = document.createElement('form'); | |
formEl.id = 'myForm'; | |
var inputContainer = document.createElement('div'); | |
inputContainer.id = 'inputContainer'; | |
formEl.appendChild(inputContainer); |
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
var Collection = require('ampersand-collection'); | |
var data = [ | |
{ | |
a: 'a', | |
b: 'auntie t\s' | |
}, { | |
a: 'b', | |
b: 'supreme' | |
}, { | |
a: 'c', |
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
var State = require('ampersand-state'); | |
var MyState = State.extend({ | |
props: { | |
myDate: { | |
type: 'date', | |
default: null | |
} | |
} | |
}); |
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
var State = require('ampersand-state'); | |
var MyState = State.extend({ | |
props: { | |
myDate: { | |
type: 'date', | |
default: null | |
} | |
} | |
}); |
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
var State = require('ampersand-state'); | |
var MyState = State.extend({ | |
props: { | |
myDate: { | |
type: 'date', | |
default: null | |
} | |
} | |
}); |
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
#ifndef CONFIGURATION_H | |
#define CONFIGURATION_H | |
// This configuration file contains the basic settings. | |
// Advanced settings can be found in Configuration_adv.h | |
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration | |
// User-specified version info of this build to display in [Pronterface, etc] terminal window during | |
// startup. Implementation of an idea by Prof Braino to inform user that any changes made to this | |
// build by the user have been successfully uploaded into firmware. |
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
var FormView = require('ampersand-form-view'); | |
var SelectView = require('ampersand-select-view'); | |
var MyForm = FormView.extend({ | |
validCallback: function (valid) { | |
if (valid) { | |
console.log('The form is valid!'); | |
} else { | |
/** | |
* THIS IS EXECUTED on first render |
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
var View = require('ampersand-view'); | |
var ViewSwitcher = require('ampersand-view-switcher'); | |
var domready = require('domready'); | |
var MySubView = View.extend({ | |
props: { data: 'string'}, | |
template: [ | |
'<div>', | |
'<span>suuuper subview</span><br/>', | |
'<div data-hook="data"></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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Rebuild to run it on the right | |
var View = require('ampersand-view'); | |
var State = require('ampersand-state'); | |
var domready = require('domready'); | |
var MyState = State.extend({ | |
props: { | |
log: 'string' | |
} |
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
var View = require('ampersand-view'); | |
var State = require('ampersand-state'); | |
var domready = require('domready'); | |
var MyState = State.extend({ | |
props: { | |
log: 'string' | |
} | |
}); |