Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-reflect

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-reflect

Ember CLI addon for embedding Reflect views.

  • 0.0.14
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

Reflect Ember

EmberCLI addon that provides a reflect-view component for rendering Reflect views into your Ember app.

Usage

{{ reflect-view
    token="API_TOKEN"
    project="project"
    filters=filters
    parameters=parameters
    view="view-name" }}

Configuration

The addon can be configured through a reflect object in config/environment.js.

  • css: CSS file to load instead of the default.

Supported attributes

  • token: (Required) A Reflect API token. Read-only tokens are suggested.
  • tokens A list of generated tokens.
  • view (Required) the slug of the view to embed.
  • project (Required) the slug of the project in which this view lives.
  • filters: An array containing filter objects for this view.
  • parameters: An array containing filter objects for this view.
  • events: an object containing event callbacks for your components. See more below.
  • overrides: An array of objects that allow you to modify the Reflect view configuration at runtime.
  • colors: An object that allows you to define static colors for dimensional values.

NOTE: You must supply either token or tokens.

Events

Events allow you to tightly integrate your Reflect View with the app it's embedded within. Through the Ember component, events are set up through an events property that looks like this:

{
  componentSlug: {
    eventType: [
      function(data) {}
    ]
  }
}

The keys of the parent object are the slugs of the components you wish to add events to. The values are objects as well, where the keys are event types, and the values are an array of callbacks for that event. Refer to our Reflect.js documentation for more information on events. https://reflect.io/docs/reference/reflect-js.html

Installation

npm install ember-cli-reflect

Keywords

FAQs

Package last updated on 07 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc