Skip to content

Commit

Permalink
docs: add label property JSDoc annotation to vaadin-item (#6919) (#6920)
Browse files Browse the repository at this point in the history
Co-authored-by: Serhii Kulykov <[email protected]>
  • Loading branch information
vaadin-bot and web-padawan authored Dec 7, 2023
1 parent f32a78d commit e46b52f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/item/src/vaadin-item.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ declare class Item extends ItemMixin(ThemableMixin(DirMixin(HTMLElement))) {
* Submittable string value. The default value is the trimmed text content of the element.
*/
value: string;

/**
* String that can be set to visually represent the selected item in `vaadin-select`.
*/
label: string | undefined;
}

declare global {
Expand Down
9 changes: 7 additions & 2 deletions packages/item/src/vaadin-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,13 @@ class Item extends ItemMixin(ThemableMixin(DirMixin(PolymerElement))) {
* Submittable string value. The default value is the trimmed text content of the element.
* @type {string}
*/
// eslint-disable-next-line no-unused-expressions
this.value;
this.value; // eslint-disable-line no-unused-expressions

/**
* String that can be set to visually represent the selected item in `vaadin-select`.
* @type {string}
*/
this.label; // eslint-disable-line no-unused-expressions
}

/** @protected */
Expand Down

0 comments on commit e46b52f

Please sign in to comment.