All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.polymer.iron.DemoSnippetElement Maven / Gradle / Ivy

The newest version!
/*
 * This code was generated with Vaadin Web Component GWT API Generator, 
 * from iron-demo-helpers project by The Polymer Authors
 * that is licensed with http://polymer.github.io/LICENSE.txt license.
 */
package com.vaadin.polymer.iron;

import com.vaadin.polymer.elemental.*;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

/**
 * 

demo-snippet is a helper element that displays the source of a code snippet and
its rendered demo. It can be used for both native elements and
Polymer elements.

*
Example of a native element demo
 * 
 *     <demo-snippet>
 *       <template>
 *         <input type="date">
 *       </template>
 *     </demo-snippet>
 * 
 * Example of a Polymer <paper-checkbox> demo
 * 
 *     <demo-snippet>
 *       <template>
 *         <paper-checkbox>Checkbox</paper-checkbox>
 *         <paper-checkbox checked>Checkbox</paper-checkbox>
 *       </template>
 *     </demo-snippet>
 * 
 * 
 * 

Styling

*

The following custom properties and mixins are available for styling:

* * * * * * * * * * * * * * * * * * * * * * * * * *
Custom propertyDescriptionDefault
--demo-snippetMixin applied to the entire element{}
--demo-snippet-demoMixin applied to just the demo section{}
--demo-snippet-codeMixin applied to just the code section{}
*/ @JsType(isNative=true) public interface DemoSnippetElement extends HTMLElement { @JsOverlay public static final String TAG = "demo-snippet"; @JsOverlay public static final String SRC = "iron-demo-helpers/demo-snippet.html"; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy