File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
packages/sit-onyx/src/components/OnyxDataGrid/features/base Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 1- import { createDataGrid } from "@sit-onyx/headless" ;
21import { computed , h , ref , toValue } from "vue" ;
32import OnyxHeadline from "../../../OnyxHeadline/OnyxHeadline.vue" ;
43import type { DataGridHeadline } from "../../types.js" ;
@@ -31,12 +30,6 @@ export const BASE_FEATURE = (options?: BaseFeatureOptions) =>
3130 const rowCount = ref ( 0 ) ;
3231 const selectedCell = ref ( ) ;
3332
34- const {
35- elements : { table, td, tr } ,
36- } = createDataGrid ( {
37- selectedCell,
38- } ) ;
39-
4033 const headline = computed ( ( ) => {
4134 const _headline = toValue ( options ?. headline ) ;
4235 if ( ! _headline ) return ;
@@ -65,15 +58,6 @@ export const BASE_FEATURE = (options?: BaseFeatureOptions) =>
6558 return Array . from ( { length : skeletonCount } , ( _ , i ) => ( { id : i } ) ) ;
6659 } ,
6760 } ,
68- enhanceRow : {
69- func : ( row ) => ( { trAttributes : tr ( { rowId : row . id } ) } ) ,
70- } ,
71- enhanceCells : {
72- func : ( cell , entry ) => ( {
73- tdAttributes : td . value ( { rowId : entry [ "id" ] , colKey : cell . props . column } ) ,
74- } ) ,
75- } ,
76- tableAttributes : ( ) => table . value ,
7761 scrollContainerAttributes : ( ) => ( {
7862 class : skeleton . value ? "onyx-data-grid--skeleton" : "" ,
7963 tabindex : - 1 ,
You can’t perform that action at this time.
0 commit comments