Skip to content

Commit

Permalink
refactor: fix crud grid hide edit column usage (#8338)
Browse files Browse the repository at this point in the history
tomivirkki authored Dec 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent e5ffc28 commit 56c8c24
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/crud/src/vaadin-crud-grid-mixin.d.ts
Original file line number Diff line number Diff line change
@@ -36,4 +36,10 @@ export declare class CrudGridMixinClass {
* @attr {boolean} no-head
*/
noHead: boolean | null | undefined;

/**
* Determines whether the edit column should be hidden.
* @attr {boolean} hide-edit-column
*/
hideEditColumn: boolean | null | undefined;
}
9 changes: 7 additions & 2 deletions packages/crud/src/vaadin-crud-grid-mixin.js
Original file line number Diff line number Diff line change
@@ -39,8 +39,13 @@ export const CrudGridMixin = (superClass) =>
*/
noHead: Boolean,

/** @private */
__hideEditColumn: Boolean,
/**
* Determines whether the edit column should be hidden.
* @attr {boolean} hide-edit-column
*/
hideEditColumn: {
type: Boolean,
},
};
}

0 comments on commit 56c8c24

Please sign in to comment.