Mercurial > code > home > repos > light9
changeset 2104:6a9f9af9d3b8
EditChoice sends new choice in event
author | drewp@bigasterisk.com |
---|---|
date | Wed, 01 Jun 2022 12:19:46 -0700 |
parents | 1ef921880e37 |
children | 35468f1dcf38 |
files | light9/web/EditChoice.ts |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/web/EditChoice.ts Wed Jun 01 01:12:23 2022 -0700 +++ b/light9/web/EditChoice.ts Wed Jun 01 12:19:46 2022 -0700 @@ -3,7 +3,7 @@ import { css, html, LitElement } from "lit"; import { customElement, property } from "lit/decorators.js"; import { NamedNode } from "n3"; - +export { ResourceDisplay } from "../web/ResourceDisplay"; const log = debug("editchoice"); const RDFS = "http://www.w3.org/2000/01/rdf-schema#"; @@ -103,7 +103,7 @@ _setUri(u: any) { this.uri = u; - this.dispatchEvent(new CustomEvent("edited")); + this.dispatchEvent(new CustomEvent("edited", {detail: {newValue: u}})); } unlink() {