smart-webcomponents 15.2.3 → 15.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1397,11 +1397,17 @@ export class Table extends React.Component {
1397
1397
  }
1398
1398
 
1399
1399
  /** Resets the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is cleared, based on the value of the stateSettings property.
1400
- * @returns {none}
1401
- */
1402
- resetState() {
1403
- const result = this.nativeElement.resetState();
1404
- return result;
1400
+ */
1401
+ resetState(){
1402
+ if (this.nativeElement.isRendered) {
1403
+ this.nativeElement.resetState();
1404
+ }
1405
+ else
1406
+ {
1407
+ this.nativeElement.whenRendered(() => {
1408
+ this.nativeElement.resetState();
1409
+ });
1410
+ }
1405
1411
  }
1406
1412
 
1407
1413
  /** Saves the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is saved, based on the value of the stateSettings property.
@@ -1359,11 +1359,17 @@ export class Table extends React.Component<React.HTMLAttributes<Element> & Table
1359
1359
  }
1360
1360
 
1361
1361
  /** Resets the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is cleared, based on the value of the stateSettings property.
1362
- * @returns {none}
1363
- */
1364
- public resetState() : any {
1365
- const result: any = this.nativeElement.resetState();
1366
- return result;
1362
+ */
1363
+ public resetState(): void {
1364
+ if (this.nativeElement.isRendered) {
1365
+ this.nativeElement.resetState();
1366
+ }
1367
+ else
1368
+ {
1369
+ this.nativeElement.whenRendered(() => {
1370
+ this.nativeElement.resetState();
1371
+ });
1372
+ }
1367
1373
  }
1368
1374
 
1369
1375
  /** Saves the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is saved, based on the value of the stateSettings property.
@@ -29555,9 +29555,8 @@ export interface Table extends BaseElement, TableProperties {
29555
29555
  removeRow(row: string | number): void;
29556
29556
  /**
29557
29557
  * Resets the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is cleared, based on the value of the <strong>stateSettings</strong> property.
29558
- * @returns {none}
29559
29558
  */
29560
- resetState(): none;
29559
+ resetState(): void;
29561
29560
  /**
29562
29561
  * Saves the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is saved, based on the value of the <strong>stateSettings</strong> property.
29563
29562
  * @returns {any}
@@ -653,9 +653,8 @@ export interface Table extends BaseElement, TableProperties {
653
653
  removeRow(row: string | number): void;
654
654
  /**
655
655
  * Resets the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is cleared, based on the value of the <strong>stateSettings</strong> property.
656
- * @returns {none}
657
656
  */
658
- resetState(): none;
657
+ resetState(): void;
659
658
  /**
660
659
  * Saves the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is saved, based on the value of the <strong>stateSettings</strong> property.
661
660
  * @returns {any}