Files
agent/packages/uhk-web/src/app/models/angular-notifier-config.ts
Róbert Kiss 8d7269a998 feat(device): Add 'Save to keyboard' button (#402)
* feat(device): Add 'Save to keyboard' button

Created a 'Progress Button' that have 2 state in progress or not.
Able to set different text for different state:
- baseText for normal state
- progressText for in progress state
close: #377

* fix 'Save to keyboard' button visibility in web version

* remove success notification when save to keyboard success

* feat(notifier): Turn off auto hide of the notifier

* feat(device): Show saved state of 'Save to keyboard button'

* style: Format import in app.component.ts

* feat(device): Auto hide 'Save to Keyboard' button

* fix(device): Fix saving animation

* fix(device): Fix saving animation

* fix(device): Fix tslint
2017-09-10 23:22:54 +00:00

48 lines
1.1 KiB
TypeScript

import { NotifierOptions } from 'angular-notifier';
export const angularNotifierConfig: NotifierOptions = {
behaviour: {
autoHide: false
},
position: {
horizontal: {
/**
* Defines the horizontal position on the screen
* @type {'left' | 'middle' | 'right'}
*/
position: 'right',
/**
* Defines the horizontal distance to the screen edge (in px)
* @type {number}
*/
distance: 12
},
vertical: {
/**
* Defines the vertical position on the screen
* @type {'top' | 'bottom'}
*/
position: 'top',
/**
* Defines the vertical distance to the screen edge (in px)
* @type {number}
*/
distance: 12,
/**
* Defines the vertical gap, existing between multiple notifications (in px)
* @type {number}
*/
gap: 10
}
}
};