50 строки
1.8 KiB
TypeScript
50 строки
1.8 KiB
TypeScript
import 'syncfusion-javascript/Scripts/ej/common/ej.scroller.min';
|
|
import { CommonModule } from '@angular/common';
|
|
import { EJComponents } from './core';
|
|
import { EventEmitter, Type, Component, ElementRef, ChangeDetectorRef, Input, Output, NgModule, ModuleWithProviders } from '@angular/core';
|
|
|
|
|
|
|
|
@Component({
|
|
selector: 'ej-scroller',
|
|
template: '<ng-content></ng-content>'})
|
|
export class ScrollerComponent extends EJComponents<any, any> {
|
|
@Input('options') options: any;
|
|
@Input('animationSpeed') animationSpeed_input: any;
|
|
@Input('autoHide') autoHide_input: any;
|
|
@Input('buttonSize') buttonSize_input: any;
|
|
@Input('enabled') enabled_input: any;
|
|
@Input('enablePersistence') enablePersistence_input: any;
|
|
@Input('enableRTL') enableRTL_input: any;
|
|
@Input('enableTouchScroll') enableTouchScroll_input: any;
|
|
@Input('height') height_input: any;
|
|
@Input('scrollerSize') scrollerSize_input: any;
|
|
@Input('scrollLeft') scrollLeft_input: any;
|
|
@Input('scrollOneStepBy') scrollOneStepBy_input: any;
|
|
@Input('scrollTop') scrollTop_input: any;
|
|
@Input('targetPane') targetPane_input: any;
|
|
@Input('width') width_input: any;
|
|
|
|
|
|
@Output('create') create_output = new EventEmitter();
|
|
@Output('destroy') destroy_output = new EventEmitter();
|
|
@Output('thumbMove') thumbMove_output = new EventEmitter();
|
|
@Output('thumbStart') thumbStart_output = new EventEmitter();
|
|
@Output('thumbEnd') thumbEnd_output = new EventEmitter();
|
|
@Output('wheelMove') wheelMove_output = new EventEmitter();
|
|
@Output('wheelStart') wheelStart_output = new EventEmitter();
|
|
@Output('wheelStop') wheelStop_output = new EventEmitter();
|
|
|
|
constructor(public el: ElementRef, public cdRef: ChangeDetectorRef) {
|
|
super('Scroller', el, cdRef, []);
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
export var EJ_SCROLLER_COMPONENTS: Type<any>[] = [ScrollerComponent
|
|
];
|
|
|
|
|