UNPKG

@evan.network/ui-angular-core

Version:

The angular-core operates as an global and central library for the evan.network Angular 5 frontend development. Using this project you will be able to to the following things:

29 lines (28 loc) 919 B
import { Platform } from 'angular-libs'; import { SingletonService } from '../singleton-service'; import { EvanUtilService } from '../utils'; /**************************************************************************************************/ /** * Helper that imoproves input selection on mobile devices. It will scroll * automatically, so the input will appear within the viewport * * @class Injectable EvanInputService */ export declare class EvanInputService { private utils; private singleton; private platform; /** * Elements to scroll to */ private elementsToScrollTo; /** * make it singletone and bind input focus events */ constructor(utils: EvanUtilService, singleton: SingletonService, platform: Platform); /** * checks for an active dom element and scrolls the users viewport to this * input */ scrollToActiveInput(): void; }