@@ -400,7 +400,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
400
400
*
401
401
* @example
402
402
* ```html
403
- * <igx-grid #grid [data]="localData" [showToolbar]="true" [ primaryKey]="'ProductID'" [autoGenerate]="true"></igx-grid>
403
+ * <igx-grid #grid [data]="localData" [primaryKey]="'ProductID'" [autoGenerate]="true"></igx-grid>
404
404
* ```
405
405
*/
406
406
@WatchChanges ( )
@@ -813,7 +813,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
813
813
* Args: { column: any, newValue: boolean }
814
814
* @example
815
815
* ```html
816
- * <igx-grid [columnHiding]="true" [showToolbar]="true" (columnVisibilityChanging)="visibilityChanging($event)"></igx-grid>
816
+ * <igx-grid (columnVisibilityChanging)="visibilityChanging($event)"></igx-grid>
817
817
* ```
818
818
*/
819
819
@Output ( )
@@ -826,7 +826,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
826
826
* Args: { column: IgxColumnComponent, newValue: boolean }
827
827
* @example
828
828
* ```html
829
- * <igx-grid [columnHiding]="true" [showToolbar]="true" (columnVisibilityChanged)="visibilityChanged($event)"></igx-grid>
829
+ * <igx-grid (columnVisibilityChanged)="visibilityChanged($event)"></igx-grid>
830
830
* ```
831
831
*/
832
832
@Output ( )
@@ -839,7 +839,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
839
839
* Returns the moved `IgxColumnComponent` object.
840
840
* @example
841
841
* ```html
842
- * <igx-grid [columnHiding]="true" [showToolbar]="true" (columnMovingStart)="movingStart($event)"></igx-grid>
842
+ * <igx-grid (columnMovingStart)="movingStart($event)"></igx-grid>
843
843
* ```
844
844
*/
845
845
@Output ( )
@@ -852,7 +852,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
852
852
* Returns the source and target `IgxColumnComponent` objects. This event is cancelable.
853
853
* @example
854
854
* ```html
855
- * <igx-grid [columnHiding]="true" [showToolbar]="true" (columnMoving)="moving($event)"></igx-grid>
855
+ * <igx-grid (columnMoving)="moving($event)"></igx-grid>
856
856
* ```
857
857
*/
858
858
@Output ( )
@@ -865,7 +865,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
865
865
* Returns the source and target `IgxColumnComponent` objects.
866
866
* @example
867
867
* ```html
868
- * <igx-grid [columnHiding]="true" [showToolbar]="true" (columnMovingEnd)="movingEnds($event)"></igx-grid>
868
+ * <igx-grid (columnMovingEnd)="movingEnds($event)"></igx-grid>
869
869
* ```
870
870
*/
871
871
@Output ( )
@@ -1567,28 +1567,6 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
1567
1567
}
1568
1568
}
1569
1569
1570
- /**
1571
- * Gets/Sets whether the column hiding UI is enabled.
1572
- *
1573
- * @deprecated
1574
- * @remarks
1575
- * By default it is disabled (false). In order for the UI to work, you need to enable the toolbar as shown in the example below.
1576
- * @example
1577
- * ```html
1578
- * <igx-grid [data]="Data" [autoGenerate]="true" [showToolbar]="true" [columnHiding]="true"></igx-grid>
1579
- * ```
1580
- */
1581
- @DeprecateProperty ( '`columnHiding` is deprecated.' )
1582
- @Input ( )
1583
- public get columnHiding ( ) {
1584
- return this . _columnHiding ;
1585
- }
1586
-
1587
- public set columnHiding ( value ) {
1588
- this . _columnHiding = value ;
1589
- this . notifyChanges ( ) ;
1590
- }
1591
-
1592
1570
/**
1593
1571
* Gets/Sets if the row selectors are hidden.
1594
1572
*
@@ -1646,7 +1624,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
1646
1624
* By default it is set to false.
1647
1625
* @example
1648
1626
* ```html
1649
- * <igx-grid #grid [showToolbar]="true" [ rowEditable]="true" [primaryKey]="'ProductID'" [columnHiding]="true" ></igx-grid>
1627
+ * <igx-grid #grid [rowEditable]="true" [primaryKey]="'ProductID'" ></igx-grid>
1650
1628
* ```
1651
1629
*/
1652
1630
@WatchChanges ( )
@@ -1733,7 +1711,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
1733
1711
*
1734
1712
* @example
1735
1713
* ```html
1736
- * <igx-grid #grid [data]="localData" [showToolbar]="true" [ rowHeight]="100" [autoGenerate]="true"></igx-grid>
1714
+ * <igx-grid #grid [data]="localData" [rowHeight]="100" [autoGenerate]="true"></igx-grid>
1737
1715
* ```
1738
1716
*/
1739
1717
@WatchChanges ( )
@@ -1751,7 +1729,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
1751
1729
*
1752
1730
* @example
1753
1731
* ```html
1754
- * <igx-grid #grid [data]="localData" [showToolbar]="true" [ columnWidth]="100" [autoGenerate]="true"></igx-grid>
1732
+ * <igx-grid #grid [data]="localData" [columnWidth]="100" [autoGenerate]="true"></igx-grid>
1755
1733
* ```
1756
1734
*/
1757
1735
@WatchChanges ( )
@@ -1839,30 +1817,6 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
1839
1817
return this . _emptyFilteredGridMessage || this . resourceStrings . igx_grid_emptyFilteredGrid_message ;
1840
1818
}
1841
1819
1842
- /**
1843
- * Gets/Sets the title to be displayed in the built-in column hiding UI.
1844
- *
1845
- * @deprecated
1846
- *
1847
- * @example
1848
- * ```html
1849
- * <igx-grid [showToolbar]="true" [columnHiding]="true" columnHidingTitle="Column Hiding"></igx-grid>
1850
- * ```
1851
- */
1852
- @DeprecateProperty ( '`columnHidingTitle` is deprecated' )
1853
- @Input ( )
1854
- public get columnHidingTitle ( ) : string {
1855
- return this . _columnHidingTitle ;
1856
- }
1857
- public set columnHidingTitle ( v : string ) {
1858
- this . _columnHidingTitle = v ;
1859
- }
1860
-
1861
- /** @hidden @internal */
1862
- public get columnHidingTitleInternal ( ) : string {
1863
- return this . _columnHidingTitle ;
1864
- }
1865
-
1866
1820
/**
1867
1821
* Gets/Sets the initial pinning configuration.
1868
1822
*
@@ -1885,51 +1839,6 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
1885
1839
this . _pinning = value ;
1886
1840
}
1887
1841
1888
-
1889
- /**
1890
- * Gets/Sets if the built-in column pinning UI should be shown in the toolbar.
1891
- *
1892
- * @deprecated
1893
- *
1894
- * @example
1895
- * ```html
1896
- * <igx-grid #grid [data]="localData" [columnPinning]="'true" [height]="'305px'" [autoGenerate]="true"></igx-grid>
1897
- * ```
1898
- */
1899
- @DeprecateProperty ( '`columnPinning` is deprecated' )
1900
- @Input ( )
1901
- public get columnPinning ( ) {
1902
- return this . _columnPinning ;
1903
- }
1904
- public set columnPinning ( value ) {
1905
- this . _columnPinning = value ;
1906
- this . notifyChanges ( ) ;
1907
- }
1908
-
1909
- /**
1910
- * Gets/Sets the title to be displayed in the UI of the column pinning.
1911
- *
1912
- * @deprecated
1913
- *
1914
- * @example
1915
- * ```html
1916
- * <igx-grid #grid [data]="localData" [columnPinning]="'true" [columnPinningTitle]="'Column Hiding'" [autoGenerate]="true"></igx-grid>
1917
- * ```
1918
- */
1919
- @DeprecateProperty ( '`columnPinningTitle` is deprecated' )
1920
- @Input ( )
1921
- public get columnPinningTitle ( ) : string {
1922
- return this . _columnPinningTitle ;
1923
- }
1924
- public set columnPinningTitle ( v : string ) {
1925
- this . _columnPinningTitle = v ;
1926
- }
1927
-
1928
- /** @hidden @internal */
1929
- public get columnPinningTitleInternal ( ) : string {
1930
- return this . _columnPinningTitle ;
1931
- }
1932
-
1933
1842
/**
1934
1843
* Gets/Sets if the filtering is enabled.
1935
1844
*
@@ -1964,7 +1873,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
1964
1873
*
1965
1874
* @example
1966
1875
* ```html
1967
- * <igx-grid #grid [data]="localData" [allowAdvancedFiltering]="true" [showToolbar]="true" [ autoGenerate]="true"></igx-grid>
1876
+ * <igx-grid #grid [data]="localData" [allowAdvancedFiltering]="true" [autoGenerate]="true"></igx-grid>
1968
1877
* ```
1969
1878
*/
1970
1879
@Input ( )
@@ -2429,52 +2338,6 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
2429
2338
return this . pinnedColumns . filter ( col => ! col . columnLayout ) . length ;
2430
2339
}
2431
2340
2432
- /**
2433
- * Gets/Sets the text to be displayed inside the toggle button.
2434
- *
2435
- * @deprecated
2436
- *
2437
- * @remarks
2438
- * Used for the built-in column hiding UI of the`IgxColumnComponent`.
2439
- * @example
2440
- * ```html
2441
- * <igx-grid [columnHiding]="true" [showToolbar]="true" [hiddenColumnsText]="'Hidden Columns'"></igx-grid>
2442
- * ```
2443
- */
2444
- // @DeprecateProperty ('`hiddenColumnsText` is deprecated')
2445
- @Input ( )
2446
- public get hiddenColumnsText ( ) {
2447
- return this . _hiddenColumnsText ;
2448
- }
2449
-
2450
- public set hiddenColumnsText ( value ) {
2451
- this . _hiddenColumnsText = value ;
2452
- this . notifyChanges ( ) ;
2453
-
2454
- }
2455
-
2456
- /**
2457
- * Gets/Sets the text to be displayed inside the toggle button.
2458
- *
2459
- * @deprecated
2460
- *
2461
- * @remarks
2462
- * Used for the built-in column pinning UI of the`IgxColumnComponent`.
2463
- * @example
2464
- * ```html
2465
- * <igx-grid [pinnedColumnsText]="'PinnedCols Text" [data]="data" [width]="'100%'" [height]="'500px'"></igx-grid>
2466
- * ```
2467
- */
2468
- @DeprecateProperty ( '`pinnedColumnsText` is deprecated' )
2469
- @Input ( )
2470
- public get pinnedColumnsText ( ) {
2471
- return this . _pinnedColumnsText ;
2472
- }
2473
- public set pinnedColumnsText ( value ) {
2474
- this . _pinnedColumnsText = value ;
2475
- this . notifyChanges ( ) ;
2476
- }
2477
-
2478
2341
/**
2479
2342
* Gets/Sets whether the grid has batch editing enabled.
2480
2343
* When batch editing is enabled, changes are not made directly to the underlying data.
@@ -2500,11 +2363,6 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
2500
2363
}
2501
2364
}
2502
2365
2503
- /** @hidden @internal */
2504
- public get pinnedColumnsTextInternal ( ) {
2505
- return this . _pinnedColumnsText ;
2506
- }
2507
-
2508
2366
/**
2509
2367
* Get transactions service for the grid.
2510
2368
*/
@@ -2535,47 +2393,6 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
2535
2393
return this . _currencyPositionLeft = i < 1 ;
2536
2394
}
2537
2395
2538
-
2539
- /**
2540
- * Gets/Sets whether the toolbar is shown.
2541
- *
2542
- * @deprecated
2543
- *
2544
- * @example
2545
- * ```html
2546
- * <igx-grid [data]="localData" [showToolbar]="true" [autoGenerate]="true" ></igx-grid>
2547
- * ```
2548
- */
2549
- @DeprecateProperty ( '`showToolbar` is deprecated' )
2550
- @Input ( )
2551
- public get showToolbar ( ) : boolean {
2552
- return this . _showToolbar ;
2553
- }
2554
- public set showToolbar ( newValue : boolean ) {
2555
- this . _showToolbar = newValue ;
2556
- }
2557
-
2558
- /**
2559
- * Gets/Sets the toolbar's title.
2560
- *
2561
- * @deprecated
2562
- *
2563
- * @example
2564
- * ```html
2565
- * <igx-grid [data]="localData" [showToolbar]="true" [autoGenerate]="true" [toolbarTitle]="'My Grid'"></igx-grid>
2566
- * ```
2567
- */
2568
- @DeprecateProperty ( '`toolbarTitle` is deprecated' )
2569
- @Input ( )
2570
- public get toolbarTitle ( ) : string {
2571
- return this . _toolbarTitle ;
2572
- }
2573
-
2574
- public set toolbarTitle ( newValue : string ) {
2575
- this . _toolbarTitle = newValue ;
2576
- this . notifyChanges ( ) ;
2577
- }
2578
-
2579
2396
/**
2580
2397
* Gets/Sets whether exporting to MS Excel is enabled or disabled.
2581
2398
*
@@ -2973,14 +2790,10 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
2973
2790
return this . verticalScrollContainer . getScrollNativeSize ( ) ;
2974
2791
}
2975
2792
2976
- private _columnPinningTitle : string ;
2977
- private _columnHidingTitle : string ;
2978
2793
2979
2794
/* Toolbar related definitions */
2980
- private _showToolbar = false ;
2981
2795
private _exportExcel = false ;
2982
2796
private _exportCsv = false ;
2983
- private _toolbarTitle : string = null ;
2984
2797
private _exportText : string ;
2985
2798
private _exportExcelText : string ;
2986
2799
private _exportCsvText : string ;
@@ -3017,8 +2830,6 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
3017
2830
3018
2831
private columnListDiffer ;
3019
2832
private rowListDiffer ;
3020
- private _hiddenColumnsText = '' ;
3021
- private _pinnedColumnsText = '' ;
3022
2833
private _height : string | null = '100%' ;
3023
2834
private _width : string | null = '100%' ;
3024
2835
private _rowHeight ;
0 commit comments