Last active
August 29, 2015 14:21
-
-
Save alvincrespo/930af53d0252b6025597 to your computer and use it in GitHub Desktop.
ui/app/pods/cio-insights
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
// ui/app/pods/cio-insights/component.js | |
import Ember from 'ember'; | |
import FlyPanelComponent from 'fly-components/components/fly-panel'; | |
import { computedReads, notEmpty } from 'cio/utils/ember-helpers'; | |
export default FlyPanelComponent.extend({ | |
classNames: ['cio-insight'], | |
event: null, | |
filter: null, | |
results: null, | |
series: null, | |
hasEvent: notEmpty('event'), | |
query: computedReads('event', function() { | |
//do some stuff | |
}), | |
actions: { /* Some awesome actions */ } | |
}); | |
// ui/app/pods/cio-insights/template.hbs | |
{{#fly-panel-header}} | |
<h1 class="fly-panel-title"> | |
"{{event}}" event | |
</h1> | |
{{/fly-panel-header}} | |
{{cio-insights-results | |
event=event | |
filter=filter | |
results=results | |
series=series}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment