|
1 | | -import { ChangeDetectionStrategy, Component, contentChild, CUSTOM_ELEMENTS_SCHEMA, Directive, effect, EmbeddedViewRef, inject, input, TemplateRef, ViewContainerRef } from '@angular/core'; |
| 1 | +import { booleanAttribute, ChangeDetectionStrategy, Component, contentChild, CUSTOM_ELEMENTS_SCHEMA, Directive, effect, EmbeddedViewRef, inject, input, TemplateRef, ViewContainerRef } from '@angular/core'; |
2 | 2 | import { ColumnConfiguration, ColumnSortConfiguration, IgcCellContext, IgcHeaderContext, Keys, DataType } from 'igniteui-grid-lite'; |
3 | 3 |
|
4 | 4 | /** Configuration object for grid columns. */ |
@@ -88,25 +88,25 @@ export class IgxGridLiteColumnComponent<T extends object = any> { |
88 | 88 | public readonly width = input<string>(); |
89 | 89 |
|
90 | 90 | /** Indicates whether the column is hidden. */ |
91 | | - public readonly hidden = input<boolean>(false); |
| 91 | + public readonly hidden = input(false, { transform: booleanAttribute }); |
92 | 92 |
|
93 | 93 | /** Indicates whether the column is resizable. */ |
94 | | - public readonly resizable = input<boolean>(false); |
| 94 | + public readonly resizable = input(false, { transform: booleanAttribute }); |
95 | 95 |
|
96 | 96 | /** Indicates whether the column is sortable. */ |
97 | | - public readonly sortable = input<boolean>(false); |
| 97 | + public readonly sortable = input(false, { transform: booleanAttribute }); |
98 | 98 |
|
99 | 99 | /** Whether sort operations will be case sensitive. */ |
100 | | - public readonly sortingCaseSensitive = input<boolean>(false); |
| 100 | + public readonly sortingCaseSensitive = input(false, { transform: booleanAttribute }); |
101 | 101 |
|
102 | 102 | /** Sort configuration for the column (e.g., custom comparer). */ |
103 | 103 | public readonly sortConfiguration = input<IgxGridLiteColumnSortConfiguration<T>>(); |
104 | 104 |
|
105 | 105 | /** Indicates whether the column is filterable. */ |
106 | | - public readonly filterable = input<boolean>(false); |
| 106 | + public readonly filterable = input(false, { transform: booleanAttribute }); |
107 | 107 |
|
108 | 108 | /** Whether filter operations will be case sensitive. */ |
109 | | - public readonly filteringCaseSensitive = input<boolean>(false); |
| 109 | + public readonly filteringCaseSensitive = input(false, { transform: booleanAttribute }); |
110 | 110 |
|
111 | 111 | /** Custom header template for the column. */ |
112 | 112 | public readonly headerTemplate = input<TemplateRef<IgxGridLiteHeaderTemplateContext<T>>>(); |
|
0 commit comments