Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated properties for column pinning and hiding #10297

Merged
merged 9 commits into from Oct 18, 2021
11 changes: 10 additions & 1 deletion CHANGELOG.md
Expand Up @@ -7,6 +7,8 @@ All notable changes for each version of this project will be documented in this
### New Features
- `IgxCsvExporterService`, `IgxExcelExporterService`
- Exporter services are no longer required to be provided in the application since they are now injected on a root level.
- `IgxGridToolbarPinningComponent`, `IgxGridToolbarHidingComponent`
- Exposed new input `buttonText` which sets the text that is displayed inside the dropdown button in the toolbar.

### General

Expand All @@ -23,7 +25,14 @@ All notable changes for each version of this project will be documented in this
};
this.alert.positionSettings = this.newPositionSettings;
```

- `igxGrid`, `igxHierarchicalGrid`, `igxTreeGrid`
- **Breaking Change** - The following deprecated inputs have been removed
- Inputs `showToolbar`, `toolbarTitle`, `columnHiding`, `columnHidingTitle`, `hiddenColumnsText`,
`columnPinning`, `columnPinningTitle`, `pinnedColumnsText`.
Use `IgxGridToolbarComponent`, `IgxGridToolbarHidingComponent`, `IgxGridToolbarPinningComponent` instead.
- `IgxColumnActionsComponent`
- **Breaking Change** - The following input has been removed
- Input `columns`. Use `igxGrid` `columns` input instead.
## 12.2.1

### New Features
Expand Down
8 changes: 0 additions & 8 deletions projects/igniteui-angular/src/lib/grids/README.md
Expand Up @@ -193,17 +193,9 @@ Below is the list of all inputs that the developers may set to configure the gri
|`transactions`| `TransactionService` | Transaction provider allowing access to all transactions and states of the modified rows. |
|`summaryPosition`| GridSummaryPosition | The summary row position for the child levels. The default is top. |
|`summaryCalculationMode`| GridSummaryCalculationMode | The summary calculation mode. The default is rootAndChildLevels, which means summaries are calculated for root and child levels.|
|`columnHiding`| boolean | Returns whether the column hiding UI for the `IgxGridComponent` is enabled.|
| `columnHidingTitle`| string | The title to be displayed in the built-in column hiding UI.|
| `columnPinning` | boolean | Returns if the built-in column pinning UI should be shown in the toolbar. |
| `columnPinningTitle` | string | The title to be displayed in the UI of the column pinning.|
| `rowHeight` | number | Sets the row height. |
| `columnWidth` | string | The default width of the `IgxGridComponent`'s columns. |
|`primaryKey`| any | Property that sets the primary key of the `IgxGridComponent`. |
|`hiddenColumnsText`| string | The text to be displayed inside the toggle button for the built-in column hiding UI of the`IgxColumnComponent`. |
|`pinnedColumnsText`| string | the text to be displayed inside the toggle button for the built-in column pinning UI of the`IgxColumnComponent`. |
|`showToolbar`| boolean | Specifies whether the `IgxGridComponent`'s toolbar is shown or hidden.|
|`toolbarTitle`| string | the toolbar's title. |
|`exportExcel`| boolean | Returns whether the option for exporting to MS Excel is enabled or disabled. |
|`exportCsv`| boolean | Returns whether the option for exporting to CSV is enabled or disabled.|
|`exportText`| string | Returns the textual content for the main export button.|
Expand Down
Expand Up @@ -16,7 +16,6 @@ import { IgxColumnActionsBaseDirective } from './column-actions-base.directive';
import { IgxCheckboxComponent } from '../../checkbox/checkbox.component';
import { IColumnToggledEventArgs } from '../common/events';
import { IgxGridBaseDirective } from '../grid-base.directive';
import { DeprecateProperty } from '../../core/deprecateDecorators';

let NEXT_ID = 0;
/**
Expand Down Expand Up @@ -172,27 +171,6 @@ export class IgxColumnActionsComponent implements DoCheck {
this._differ = this.differs.find([]).create(this.trackChanges);
}

/**
* Gets the grid columns to provide an action for.
*
* @deprecated
* @example
* ```typescript
* let gridColumns = this.columnActions.columns;
* ```
*/
@DeprecateProperty(`Deprecated. Use 'grid' input instead.`)
mddragnev marked this conversation as resolved.
Show resolved Hide resolved
@Input()
public get columns() {
return this.grid?.columns;
}

public set columns(value) {
if (value && value.length > 0) {
this.grid = value[0].grid;
}
}

/**
* Gets the prompt that is displayed in the filter input.
*
Expand Down