Skip to content

Instantly share code, notes, and snippets.

@alvincrespo
Last active August 29, 2015 14:21
Show Gist options
  • Save alvincrespo/930af53d0252b6025597 to your computer and use it in GitHub Desktop.
Save alvincrespo/930af53d0252b6025597 to your computer and use it in GitHub Desktop.
ui/app/pods/cio-insights
// 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