This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<script type="module"> | |
import { html, render } from 'https://unpkg.com/lit-html'; | |
/** UNCOMMENT THE FOLLOWING AND COMMENT OUT THE IMPORT TO NOT USE LIT-HTML | |
const html = function(strings, ...values) { | |
let str = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { LitElement, html } from 'lit-element'; | |
class SimpleGreeting extends LitElement { | |
constructor() { | |
super(); | |
this.model = { | |
currentThing: 'optionA', | |
things: [ 'optionA', 'optionB' ] | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Test</title> | |
<script type="module"> | |
import {Theme} from "@spectrum-web-components/theme/lib/index"; | |
import {OverlayTrigger} from "@spectrum-web-components/overlay/lib/index"; | |
import {Popover} from "@spectrum-web-components/popover/lib/index"; | |
import {Button} from "@spectrum-web-components/button/lib/index"; |
OlderNewer