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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Px-demo-snippet
is a Predix UI component which displays the un-rendered, highlighted code of a component.
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.
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>
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.
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.
Please use Github Issues to submit any bugs you might find.