Skip to content

Commit

Permalink
docs: rename header to header content
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur-vaadin committed Oct 1, 2024
1 parent 1163355 commit fd47d5a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions packages/dashboard/src/vaadin-dashboard-widget.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { DashboardItemMixin } from './vaadin-dashboard-item-mixin.js';
*
* ```html
* <vaadin-dashboard-widget widget-title="Title">
* <span slot="header">Header</span>
* <span slot="header-content">Header</span>
* <div>Content</div>
* </vaadin-dashboard-widget>
* ```
Expand All @@ -26,16 +26,16 @@ import { DashboardItemMixin } from './vaadin-dashboard-item-mixin.js';
*
* You can configure the item by using `slot` names.
*
* Slot name | Description
* ----------|-------------
* `title` | A slot for the widget title. Overrides the `widgetTitle` property.
* `header` | A slot for the widget header.
* Slot name | Description
* -----------------|-------------
* `title` | A slot for the widget title. Overrides the `widgetTitle` property.
* `header-content` | A slot for the widget header content.
*
* #### Example
*
* ```html
* <vaadin-dashboard-widget>
* <span slot="header">Header</span>
* <span slot="header-content">Header</span>
* <span slot="title">Title</span>
* <div>Content</div>
* </vaadin-dashboard-widget>
Expand Down
12 changes: 6 additions & 6 deletions packages/dashboard/src/vaadin-dashboard-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { getDefaultI18n } from './vaadin-dashboard-item-mixin.js';
*
* ```html
* <vaadin-dashboard-widget widget-title="Title">
* <span slot="header">Header</span>
* <span slot="header-content">Header</span>
* <div>Content</div>
* </vaadin-dashboard-widget>
* ```
Expand All @@ -33,16 +33,16 @@ import { getDefaultI18n } from './vaadin-dashboard-item-mixin.js';
*
* You can configure the item by using `slot` names.
*
* Slot name | Description
* ----------|-------------
* `title` | A slot for the widget title. Overrides the `widgetTitle` property.
* `header` | A slot for the widget header.
* Slot name | Description
* -----------------|-------------
* `title` | A slot for the widget title. Overrides the `widgetTitle` property.
* `header-content` | A slot for the widget header content.
*
* #### Example
*
* ```html
* <vaadin-dashboard-widget>
* <span slot="header">Header</span>
* <span slot="header-content">Header</span>
* <span slot="title">Title</span>
* <div>Content</div>
* </vaadin-dashboard-widget>
Expand Down

0 comments on commit fd47d5a

Please sign in to comment.