Skip to content

Commit

Permalink
docs: add JSDoc for attributes [skip ci] (#1776)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Jul 16, 2020
1 parent d046a8a commit 20676fd
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/vaadin-grid-column-group.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

/**
* Flex grow ratio for the column group as the sum of the ratios of its child columns.
* @attr {number} flex-grow
*/
flexGrow: {
type: Number,
Expand Down
1 change: 1 addition & 0 deletions src/vaadin-grid-column-reordering-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
return {
/**
* Set to true to allow column reordering.
* @attr {boolean} column-reordering-allowed
* @type {boolean}
*/
columnReorderingAllowed: {
Expand Down
3 changes: 3 additions & 0 deletions src/vaadin-grid-column.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
/**
* Aligns the columns cell content horizontally.
* Supported values: "start", "center" and "end".
* @attr {start|center|end} text-align
* @type {GridColumnTextAlign | null | undefined}
*/
textAlign: {
Expand Down Expand Up @@ -638,6 +639,7 @@

/**
* Flex grow ratio for the cell widths. When set to 0, cell width is fixed.
* @attr {number} flex-grow
* @type {number}
*/
flexGrow: {
Expand Down Expand Up @@ -685,6 +687,7 @@
* You can manually trigger the auto sizing behavior again by calling `grid.recalculateColumnWidths()`.
*
* The column width may still grow larger when `flexGrow` is not 0.
* @attr {boolean} auto-width
* @type {boolean}
*/
autoWidth: {
Expand Down
2 changes: 2 additions & 0 deletions src/vaadin-grid-data-provider-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@

/**
* Number of items fetched at a time from the dataprovider.
* @attr {number} page-size
* @type {number}
*/
pageSize: {
Expand Down Expand Up @@ -166,6 +167,7 @@

/**
* Path to an item sub-property that identifies the item.
* @attr {string} item-id-path
*/
itemIdPath: {
type: String,
Expand Down
2 changes: 2 additions & 0 deletions src/vaadin-grid-drag-and-drop-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@
* - `on-top`: The drop event can happen on top of Grid rows.
* - `on-top-or-between`: The drop event can happen either on top of or between Grid rows.
* - `on-grid`: The drop event will not happen on any specific row, it will show the drop target outline around the whole grid.
* @attr {between|on-top|on-top-or-between|on-grid} drop-mode
* @type {GridDropMode | null | undefined}
*/
dropMode: String,

/**
* Marks the grid's rows to be available for dragging.
* @attr {boolean} rows-draggable
*/
rowsDraggable: Boolean,

Expand Down
3 changes: 3 additions & 0 deletions src/vaadin-grid-selection-column.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@

/**
* Flex grow ratio for the cell widths. When set to 0, cell width is fixed.
* @attr {number} flex-grow
* @type {number}
*/
flexGrow: {
Expand All @@ -73,6 +74,7 @@

/**
* When true, all the items are selected.
* @attr {boolean} select-all
* @type {boolean}
*/
selectAll: {
Expand All @@ -83,6 +85,7 @@

/**
* When true, the active gets automatically selected.
* @attr {boolean} auto-select
* @type {boolean}
*/
autoSelect: {
Expand Down
1 change: 1 addition & 0 deletions src/vaadin-grid-sort-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
return {
/**
* When `true`, all `<vaadin-grid-sorter>` are applied for sorting.
* @attr {boolean} multi-sort
* @type {boolean}
*/
multiSort: {
Expand Down
1 change: 1 addition & 0 deletions src/vaadin-grid-tree-column.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@

/**
* JS Path of the property in the item that indicates whether the item has child items.
* @attr {string} item-has-children-path
*/
itemHasChildrenPath: {
type: String,
Expand Down
1 change: 1 addition & 0 deletions src/vaadin-grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@
*
* Effectively, this disables the grid's virtual scrolling so that all the rows are rendered in the DOM at once.
* If the grid has a large number of items, using the feature is discouraged to avoid performance issues.
* @attr {boolean} height-by-rows
* @type {boolean}
*/
heightByRows: {
Expand Down

0 comments on commit 20676fd

Please sign in to comment.