@dotglitch/ngx-common 1.1.13 → 1.1.14
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
package/types/menu.d.ts
CHANGED
|
@@ -61,6 +61,13 @@ export type BaseMenuItem<T = any, Q = object | number | string | boolean | bigin
|
|
|
61
61
|
* Or can be a material icon identifier.
|
|
62
62
|
*/
|
|
63
63
|
icon?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Callback to choose the icon used for an item.
|
|
66
|
+
* Executed upon opening the menu.
|
|
67
|
+
*
|
|
68
|
+
* See `icon` for details.
|
|
69
|
+
*/
|
|
70
|
+
iconTemplate?: ((data: T, context: Q) => string);
|
|
64
71
|
/**
|
|
65
72
|
* CSS color string to apply on the mat icon
|
|
66
73
|
*/
|