@@ -211,8 +211,14 @@ export class VGridMarkupGenerator {
211
211
let attributeRow = col . colAddRowAttributes ? col . colAddRowAttributes : '' ;
212
212
let css = col . colCss ? `css="${ col . colCss } "` : '' ;
213
213
214
+ let imageFix = "v-image-fix" ;
215
+ if ( this . vGrid . vGridConfig . attOnlyCustom ) {
216
+ imageFix = "" ;
217
+ }
218
+
219
+
214
220
//insert the markup
215
- col . colRowTemplate = `<image ${ css } ${ classNames } v-image-fix ${ attributeRow } src.bind="${ col . colField } ">` ;
221
+ col . colRowTemplate = `<image ${ css } ${ classNames } ${ imageFix } ${ attributeRow } src.bind="${ col . colField } ">` ;
216
222
217
223
}
218
224
@@ -236,6 +242,9 @@ export class VGridMarkupGenerator {
236
242
237
243
//attibute observer for 2 way flow between row and current entity
238
244
let attributeObserver = `v-observe-field="${ this . getAttribute ( col . colField ) } "` ;
245
+ if ( this . vGrid . vGridConfig . attOnlyCustom ) {
246
+ attributeObserver = "" ;
247
+ }
239
248
240
249
//is it a checkbox?
241
250
//todo: adding the observer part without choice, maybe param for that?
@@ -301,9 +310,15 @@ export class VGridMarkupGenerator {
301
310
302
311
let sort = col . colSort ? `v-sort="${ col . colSort } "` : '' ;
303
312
313
+
314
+ let extraAttributes = "v-drag-drop-col v-resize-col" ;
315
+ if ( this . vGrid . vGridConfig . attOnlyCustom ) {
316
+ extraAttributes = "" ;
317
+ }
318
+
304
319
//apply magic
305
320
//todo, atm Im adding resize columns and dragdrop columns, should this be a choice?
306
- let markup = `<p v-drag-drop-col v-resize-col ${ classname } ${ sort } ${ colAddLabelAttributes } >${ col . colHeaderName } </p>` ;
321
+ let markup = `<p ${ extraAttributes } ${ classname } ${ sort } ${ colAddLabelAttributes } >${ col . colHeaderName } </p>` ;
307
322
//return the markup
308
323
return markup ;
309
324
}
0 commit comments