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
$ ember install ember-redux | |
Installed packages for tooling via npm. | |
installing ember-redux | |
install addons ember-redux-shim@^1.1.0, ember-redux-thunk-shim@^1.0.0 | |
Installed packages for tooling via npm. | |
installing ember-redux | |
install addons ember-redux-shim@^1.1.0, ember-redux-thunk-shim@^1.0.0 | |
trying to install 1.1.1 to /Users/brendanstromberger/dev/vishnu-redux/node_modules/ember-redux-shim | |
but already installed versions [ '1.1.1' ] | |
trying to install 1.1.2 to /Users/brendanstromberger/dev/vishnu-redux/node_modules/ember-redux-thunk-shim |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'table component', | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
classNames: ["TableGridCell"] | |
}); |
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
import Ember from 'ember'; | |
// no one will ever need more than 100000 cells. | |
const TOP_CELL_ZINDEX = 100000; | |
function _toSum(sumOfPreviousDimensions, cssValue) { | |
const separatedNumberAndUnitIdentifier = /(\d+)\s*(\w+)/ | |
// '100px' => ['100px', '100', 'px']; | |
const [, curValue, curUnit] = cssValue.match(separatedNumberAndUnitIdentifier); | |
const [, prevValue, prevUnit] = sumOfPreviousDimensions.match(separatedNumberAndUnitIdentifier); |
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
import Ember from 'ember'; | |
// no one will ever need more than 100000 cells. | |
const TOP_CELL_ZINDEX = 100000; | |
function _toSum(sumOfPreviousDimensions, cssValue) { | |
const separatedNumberAndUnitIdentifier = /(\d+)\s*(\w+)/ | |
// '100px' => ['100px', '100', 'px']; | |
const [, curValue, curUnit] = cssValue.match(separatedNumberAndUnitIdentifier); | |
const [, prevValue, prevUnit] = sumOfPreviousDimensions.match(separatedNumberAndUnitIdentifier); |
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
<div style="width: 500px; height: 200px; overflow: scroll; border: 1px solid #CCC"> | |
<div style="width: 800px;"> | |
{{#table-grid | |
fixedGridTemplateColumns="11em 4em" | |
fixedGridTemplateRows="3em" | |
cellClassNames="bg-white" | |
columnClassNames=(array "first-column") | |
rowClassNames=(array "first-row" "second-row" "third-row") | |
customCellClass=evenOrOddClassNames |
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
<div style="width: 500px; height: 200px; overflow: scroll; border: 1px solid #CCC"> | |
<div style="width: 800px;"> | |
{{#table-grid | |
fixedGridTemplateColumns="11em 4em" | |
fixedGridTemplateRows="3em" | |
cellClassNames="bg-white" | |
columnClassNames=(array "first-column") | |
rowClassNames=(array "first-row" "second-row" "third-row") | |
customCellClass=evenOrOddClassNames |