docs/api/core-greet_core-hello_CoreHelloElement.js.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Source: core-greet/core-hello/CoreHelloElement.js</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Source: core-greet/core-hello/CoreHelloElement.js</h1>
<section>
<article>
<pre class="prettyprint source linenums"><code>import CoreElement from '../../core-element/CoreElement';
import CoreGreetElement from '../CoreGreetElement';
const HELLO_STRING = {
en: 'Hello',
es: 'Hola',
jp: 'こんにちは',
fr: 'Bonjour',
};
/**
* An element that displays "Hello" with the passed-in name.
* @property {string} name the string that will be displayed.
* @property {boolean} rainbow whether the name should be colorfully animated.
* @property {String} lang the language to display in.
*/
class CoreHelloElement extends CoreGreetElement {
/** Creates a CoreHello element. */
constructor() {
super(HELLO_STRING);
}
}
CoreElement.customTag('core-hello', CoreHelloElement);
export default CoreHelloElement;
</code></pre>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-CoreElement.html">CoreElement</a></li></ul><h3>Classes</h3><ul><li><a href="CoreByeElement.html">CoreByeElement</a></li><li><a href="CoreGreetElement.html">CoreGreetElement</a></li><li><a href="CoreHelloElement.html">CoreHelloElement</a></li><li><a href="CoreLinkElement.html">CoreLinkElement</a></li><li><a href="CoreSliderElement.html">CoreSliderElement</a></li><li><a href="CoreTooltipElement.html">CoreTooltipElement</a></li><li><a href="module-CoreElement-CoreElement.html">CoreElement</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a> on Thu Jun 13 2019 18:17:43 GMT-0700 (Pacific Daylight Time)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>