fit-ui 2.12.2 → 2.12.3
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.
- package/dist/Documentation.html +1 -1
- package/dist/Fit.UI.js +79 -44
- package/dist/Fit.UI.min.js +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +15 -4
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -6958,10 +6958,11 @@ declare namespace Fit
|
|
|
6958
6958
|
Operation may be postponed if data is currently loading from WebService.
|
|
6959
6959
|
Use callback to pick up execution once data has been cleared.
|
|
6960
6960
|
Sender (Fit.Controls.WSDropDown) is passed to callback as an argument.
|
|
6961
|
+
To make sure data reloads immediate, please use ReloadData(..) instead.
|
|
6961
6962
|
* @function ClearData
|
|
6962
|
-
* @param {Fit.Controls.WSDropDownTypeDefs.
|
|
6963
|
+
* @param {Fit.Controls.WSDropDownTypeDefs.DataCallback<this>} [cb=undefined] - If defined, callback is invoked when data is cleared.
|
|
6963
6964
|
*/
|
|
6964
|
-
public ClearData(cb?:Fit.Controls.WSDropDownTypeDefs.
|
|
6965
|
+
public ClearData(cb?:Fit.Controls.WSDropDownTypeDefs.DataCallback<this>):void;
|
|
6965
6966
|
/**
|
|
6966
6967
|
* Get WSListView control used to display data in a flat list view.
|
|
6967
6968
|
* @function GetListView
|
|
@@ -7037,6 +7038,16 @@ declare namespace Fit
|
|
|
7037
7038
|
*/
|
|
7038
7039
|
public OnResponse(cb:Fit.Controls.WSDropDownTypeDefs.ResponseEventHandler<this>):void;
|
|
7039
7040
|
/**
|
|
7041
|
+
* Call this function to make control reload data immediately,
|
|
7042
|
+
ensuring that the user will see the most recent values available.
|
|
7043
|
+
Use callback to pick up execution once data has been loaded.
|
|
7044
|
+
Sender (Fit.Controls.WSDropDown) is passed to callback as an argument.
|
|
7045
|
+
To have data reload when needed (lazy loading), please use ClearData(..) instead.
|
|
7046
|
+
* @function ReloadData
|
|
7047
|
+
* @param {Fit.Controls.WSDropDownTypeDefs.DataCallback<this>} [cb=undefined] - If defined, callback is invoked when data has been loaded.
|
|
7048
|
+
*/
|
|
7049
|
+
public ReloadData(cb?:Fit.Controls.WSDropDownTypeDefs.DataCallback<this>):void;
|
|
7050
|
+
/**
|
|
7040
7051
|
* Reset action menu so it automatically determines whether to show up or not
|
|
7041
7052
|
when DropDown control is opened/re-opened, based on rules outlined in the
|
|
7042
7053
|
description for UseActionMenu(..).
|
|
@@ -7626,10 +7637,10 @@ declare namespace Fit
|
|
|
7626
7637
|
/**
|
|
7627
7638
|
* Event handler.
|
|
7628
7639
|
* @template TypeOfThis
|
|
7629
|
-
* @callback
|
|
7640
|
+
* @callback DataCallback
|
|
7630
7641
|
* @param {TypeOfThis} sender - Instance of control.
|
|
7631
7642
|
*/
|
|
7632
|
-
type
|
|
7643
|
+
type DataCallback<TypeOfThis> = (sender:TypeOfThis) => void;
|
|
7633
7644
|
/**
|
|
7634
7645
|
* Aborted request handler.
|
|
7635
7646
|
* @template TypeOfThis
|