@sankhyalabs/core-docs 2.4.2 → 2.5.1
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/classes/DataUnit.md +2 -2
- package/classes/JSUtils.md +46 -0
- package/modules.md +1 -0
- package/package.json +1 -1
package/classes/DataUnit.md
CHANGED
@@ -404,7 +404,7 @@ Obtém todos os registros atuais.
|
|
404
404
|
|
405
405
|
src/dataunit/DataUnit.ts:508
|
406
406
|
|
407
|
-
• `set` **records**(`
|
407
|
+
• `set` **records**(`records`): `void`
|
408
408
|
|
409
409
|
Define a propriedade records da instância da classe com um novo valor e chama o método dispatchAction para notificar os observers da aplicação sobre a mudança.
|
410
410
|
|
@@ -412,7 +412,7 @@ Define a propriedade records da instância da classe com um novo valor e chama o
|
|
412
412
|
|
413
413
|
| Name | Type |
|
414
414
|
| :------ | :------ |
|
415
|
-
| `
|
415
|
+
| `records` | [`Record`](../interfaces/Record.md)[] |
|
416
416
|
|
417
417
|
#### Returns
|
418
418
|
|
@@ -0,0 +1,46 @@
|
|
1
|
+
[@sankhyalabs/core](../README.md) / [Exports](../modules.md) / JSUtils
|
2
|
+
|
3
|
+
# Class: JSUtils
|
4
|
+
|
5
|
+
Classe com utiliários comuns para funções genéricas em JavaScript.
|
6
|
+
|
7
|
+
## Table of contents
|
8
|
+
|
9
|
+
### Constructors
|
10
|
+
|
11
|
+
- [constructor](JSUtils.md#constructor)
|
12
|
+
|
13
|
+
### Methods
|
14
|
+
|
15
|
+
- [debounce](JSUtils.md#debounce)
|
16
|
+
|
17
|
+
## Constructors
|
18
|
+
|
19
|
+
### constructor
|
20
|
+
|
21
|
+
• **new JSUtils**()
|
22
|
+
|
23
|
+
## Methods
|
24
|
+
|
25
|
+
### debounce
|
26
|
+
|
27
|
+
▸ `Static` **debounce**(`callback`, `timeout?`): `any`
|
28
|
+
|
29
|
+
Método responsável em criar um timer para processar uma determinada função.
|
30
|
+
|
31
|
+
#### Parameters
|
32
|
+
|
33
|
+
| Name | Type | Default value | Description |
|
34
|
+
| :------ | :------ | :------ | :------ |
|
35
|
+
| `callback` | `any` | `undefined` | Função de callback para processar após o timer. |
|
36
|
+
| `timeout` | `number` | `300` | Valor dos milissegundos desejados para processar a função (o padrão é 300). |
|
37
|
+
|
38
|
+
#### Returns
|
39
|
+
|
40
|
+
`any`
|
41
|
+
|
42
|
+
- Retorna um método com controle de timer para processar a função de callback.
|
43
|
+
|
44
|
+
#### Defined in
|
45
|
+
|
46
|
+
src/utils/JSUtils.ts:14
|
package/modules.md
CHANGED
@@ -31,6 +31,7 @@
|
|
31
31
|
- [ErrorTracking](classes/ErrorTracking.md)
|
32
32
|
- [FloatingManager](classes/FloatingManager.md)
|
33
33
|
- [HttpProvider](classes/HttpProvider.md)
|
34
|
+
- [JSUtils](classes/JSUtils.md)
|
34
35
|
- [MaskFormatter](classes/MaskFormatter-1.md)
|
35
36
|
- [NumberUtils](classes/NumberUtils.md)
|
36
37
|
- [ObjectUtils](classes/ObjectUtils.md)
|