From f653a01328be3b8be6af35c0c96867623765ca5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 5 Sep 2023 11:41:46 +0200 Subject: Move JS documentation into the JS-code. Texinfo was a bad match for how TypeScript is structured. This also allows generation of jsdoc pages, which can be nice. Another large win is that this opens up for the texinfo pages to replace the Guile heading with different subheadings, including - external library - internal library - C library - ... --- static/ts/components/input-list.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'static/ts/components/input-list.ts') diff --git a/static/ts/components/input-list.ts b/static/ts/components/input-list.ts index 0afd4999..31dd5158 100644 --- a/static/ts/components/input-list.ts +++ b/static/ts/components/input-list.ts @@ -1,3 +1,13 @@ +/** + * `` + * + * A list of identical input fields, which forms a group. For example + * useful to handle keywords. + * + * @category Web Components + * @mergeTarget components + * @module + */ export { InputList } /* @@ -58,6 +68,10 @@ class InputList extends HTMLElement { this.appendChild(new_el); } + /** + * The value from each element, except the last which should always be empty. + * Has an unspecified type, since children:s value field might give non-strings. + */ get value(): any[] { let value_list = [] for (let child of this.children) { -- cgit v1.2.3