@massimo-cassandro/minimo 0.12.4 → 0.12.5
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/package.json
CHANGED
|
@@ -21,7 +21,7 @@ export function snackbar(message, options = {}){
|
|
|
21
21
|
options = {
|
|
22
22
|
|
|
23
23
|
status : null, // danger, warning, info, success
|
|
24
|
-
duration :
|
|
24
|
+
duration : 4000, // ms or false/null to avoid autoclose
|
|
25
25
|
close_btn : true, // true | false
|
|
26
26
|
|
|
27
27
|
action : null, // null or function
|
|
@@ -40,6 +40,8 @@ import caretRightIcon from '../../icons/caret-right.svg?inline';
|
|
|
40
40
|
* (sostituiti con i valori dell'oggetto riga;
|
|
41
41
|
* i segnaposto non trovati usano `_renderNullAs`)
|
|
42
42
|
* - funzione `(row) => string`
|
|
43
|
+
* - se sono impostate sia `_cellRender` che l'opzione `render` di simple-datatable
|
|
44
|
+
* quest'ultima viene annullata per evitare potenziali conflitti
|
|
43
45
|
* @property {string|Function} [_sortValue] Percorso del campo da usare per l'ORDINAMENTO al posto
|
|
44
46
|
* del contenuto visualizzato, oppure una funzione
|
|
45
47
|
* `(row) => string|number` per casi complessi
|
|
@@ -249,6 +251,20 @@ class SimpleDatatableAdapter extends HTMLElement {
|
|
|
249
251
|
}
|
|
250
252
|
}
|
|
251
253
|
|
|
254
|
+
/**
|
|
255
|
+
* Restituisce l'istanza DataTable interna di simple-datatables.
|
|
256
|
+
* Utile per operazioni non coperte dall'API del componente.
|
|
257
|
+
* Restituisce null se la tabella non è ancora stata inizializzata.
|
|
258
|
+
*
|
|
259
|
+
* Esempio:
|
|
260
|
+
* const instance = dt.getDataTable();
|
|
261
|
+
* instance.page(2);
|
|
262
|
+
* instance.on('datatable.sort', (col, dir) => console.log(col, dir));
|
|
263
|
+
*/
|
|
264
|
+
getDataTable() {
|
|
265
|
+
return this._dt ?? null;
|
|
266
|
+
}
|
|
267
|
+
|
|
252
268
|
/**
|
|
253
269
|
* Ricerca testuale su una o più colonne.
|
|
254
270
|
* @param {string} term
|