vaadin/px-demo-snippet

Name: px-demo-snippet

Owner: Vaadin

Description: For a live demo of this predix UI component, visit

Forked from: PredixDev/px-demo-snippet

Created: 2017-12-14 11:42:12.0

Updated: 2017-12-14 11:42:14.0

Pushed: 2017-12-14 12:06:53.0

Homepage: https://www.predix-ui.com/#/modules/px-demo-snippet

Size: 11549

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

px-demo-snippet

Overview

Px-demo-snippet is a Predix UI component which displays the un-rendered, highlighted code of a component.

Usage
Prerequisites
  1. node.js
  2. npm
  3. bower
  4. webcomponents-lite.js polyfill

Node, npm and bower are necessary to install the component and dependencies. webcomponents.js adds support for web components and custom elements to your application.

Getting Started

First, install the component via bower on the command line.

r install px-demo-snippet --save

Second, import the component to your application with the following tag in your head.

k rel="import" href="/bower_components/px-demo-snippet/px-demo-snippet.html"/>

Finally, use the component in your application:

demo-snippet
ement-properties={{elemProps}}
ement-name="px-demo-snippet">
-demo-snippet>



Documentation

Read the full API and view the demo here.

The documentation in this repository is supplemental to the official Predix documentation, which is continuously updated and maintained by the Predix documentation team. Go to http://predix.io to see the official Predix documentation.

Local Development

From the component's directory…

m install
wer install
lp sass

From the component's directory, to start a local server run:

lp serve

Navigate to the root of that server (e.g. http://localhost:8080/) in a browser to open the API documentation page, with link to the “Demo” / working examples.

GE Coding Style Guide

GE JS Developer's Guide



Known Issues

Please use Github Issues to submit any bugs you might find.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.