File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
projects/igniteui-angular/src/lib/toast Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -26,23 +26,24 @@ import {
2626 VerticalAlignment ,
2727 GlobalPositionStrategy ,
2828} from '../services/public_api' ;
29+ import { mkenum } from '../core/utils' ;
2930
3031let NEXT_ID = 0 ;
3132
3233/**
3334 * Enumeration for toast position
3435 * Can be:
35- * bottom
36- * middle
37- * top
36+ * Bottom
37+ * Middle
38+ * Top
3839 */
39- export enum IgxToastPositionEnum {
40- bottom ,
41- middle ,
42- top ,
43- }
40+ export const IgxToastPosition = mkenum ( {
41+ Bottom : ' bottom' ,
42+ Middle : ' middle' ,
43+ Top : ' top'
44+ } ) ;
4445
45- export type IgxToastPosition = keyof typeof IgxToastPositionEnum ;
46+ export type IgxToastPosition = ( typeof IgxToastPosition ) [ keyof typeof IgxToastPosition ] ;
4647
4748/**
4849 * **Ignite UI for Angular Toast** -
You can’t perform that action at this time.
0 commit comments