Skip to content

Commit

Permalink
refactor: update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur-vaadin committed Jan 22, 2023
1 parent b15a94a commit 80e5343
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions packages/context-menu/src/vaadin-contextmenu-items-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export const ItemsMixin = (superClass) =>
class ItemsMixin extends superClass {
static get properties() {
return {
// TODO update docs
/**
* @typedef ContextMenuItem
* @type {object}
Expand Down Expand Up @@ -89,7 +88,7 @@ export const ItemsMixin = (superClass) =>
* ### Styling
*
* The `<vaadin-context-menu-item>` sub-menu elements have the following additional state attributes on top of
* the built-in `<vaadin-menu-item-base>` state attributes (see `<vaadin-menu-item-base>` documentation for full listing).
* the built-in `<vaadin-item>` state attributes (see `<vaadin-item>` documentation for full listing).
*
* Part name | Attribute | Description
* ----------------|----------------|----------------
Expand Down
3 changes: 1 addition & 2 deletions packages/context-menu/src/vaadin-menu-item-base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/

// TODO add docs
import { Item } from '@vaadin/item/src/vaadin-item';

/**
*
* A base item class used by menus. Not intended to be used separately.
*/
declare class MenuItemBase extends Item {}

Expand Down
4 changes: 1 addition & 3 deletions packages/context-menu/src/vaadin-menu-item-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/

// TODO update docs

import { Item } from '@vaadin/item/src/vaadin-item';

/**
* A base element used for menu items.
* A base item class used by menus. Not intended to be used separately.
* @extends Item
* @private
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/menu-bar/src/vaadin-menu-bar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export interface MenuBarEventMap extends HTMLElementEventMap, MenuBarCustomEvent
* components are themable:
*
* - `<vaadin-menu-bar-button>` - has the same API as [`<vaadin-button>`](#/elements/vaadin-button).
* - `<vaadin-menu-bar-item>` - has the same API as [`<vaadin-menu-item-base>`](#/elements/vaadin-menu-item-base).
* - `<vaadin-menu-bar-item>` - has the same API as [`<vaadin-item>`](#/elements/vaadin-item).
* - `<vaadin-context-menu-list-box>` - has the same API as [`<vaadin-list-box>`](#/elements/vaadin-list-box).
* - `<vaadin-context-menu-overlay>` - has the same API as [`<vaadin-overlay>`](#/elements/vaadin-overlay).
*
Expand Down
2 changes: 1 addition & 1 deletion packages/menu-bar/src/vaadin-menu-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import { MenuBarMixin } from './vaadin-menu-bar-mixin.js';
* components are themable:
*
* - `<vaadin-menu-bar-button>` - has the same API as [`<vaadin-button>`](#/elements/vaadin-button).
* - `<vaadin-menu-bar-item>` - has the same API as [`<vaadin-menu-item-base>`](#/elements/vaadin-menu-item-base).
* - `<vaadin-menu-bar-item>` - has the same API as [`<vaadin-item>`](#/elements/vaadin-item).
* - `<vaadin-context-menu-list-box>` - has the same API as [`<vaadin-list-box>`](#/elements/vaadin-list-box).
* - `<vaadin-context-menu-overlay>` - has the same API as [`<vaadin-overlay>`](#/elements/vaadin-overlay).
*
Expand Down

0 comments on commit 80e5343

Please sign in to comment.