70 строки
3.1 KiB
TypeScript
70 строки
3.1 KiB
TypeScript
import 'syncfusion-javascript/Scripts/ej/web/ej.accordion.min';
|
|
import { CommonModule } from '@angular/common';
|
|
import { EJComponents } from './core';
|
|
import { EventEmitter, IterableDiffers, KeyValueDiffers, Type, Component, ElementRef, ChangeDetectorRef, Input, Output, NgModule, ModuleWithProviders } from '@angular/core';
|
|
|
|
|
|
|
|
@Component({
|
|
selector: 'ej-accordion',
|
|
template: '<ng-content></ng-content>'})
|
|
export class AccordionComponent extends EJComponents<any, any> {
|
|
@Input('ajaxSettings') ajaxSettings_input: any;
|
|
@Input('allowKeyboardNavigation') allowKeyboardNavigation_input: any;
|
|
@Input('collapseSpeed') collapseSpeed_input: any;
|
|
@Input('collapsible') collapsible_input: any;
|
|
@Input('cssClass') cssClass_input: any;
|
|
@Input('customIcon') customIcon_input: any;
|
|
@Input('disabledItems') disabledItems_input: any;
|
|
@Input('enableAnimation') enableAnimation_input: any;
|
|
@Input('enabled') enabled_input: any;
|
|
@Input('enabledItems') enabledItems_input: any;
|
|
@Input('enableMultipleOpen') enableMultipleOpen_input: any;
|
|
@Input('enablePersistence') enablePersistence_input: any;
|
|
@Input('enableRTL') enableRTL_input: any;
|
|
@Input('events') events_input: any;
|
|
@Input('expandSpeed') expandSpeed_input: any;
|
|
@Input('headerSize') headerSize_input: any;
|
|
@Input('height') height_input: any;
|
|
@Input('heightAdjustMode') heightAdjustMode_input: any;
|
|
@Input('htmlAttributes') htmlAttributes_input: any;
|
|
@Input('selectedItemIndex') selectedItemIndex_input: any;
|
|
@Input('selectedItems') selectedItems_input: any;
|
|
@Input('showCloseButton') showCloseButton_input: any;
|
|
@Input('showRoundedCorner') showRoundedCorner_input: any;
|
|
@Input('width') width_input: any;
|
|
@Input('ajaxSettings.async') ajaxSettings_async_input: any;
|
|
@Input('ajaxSettings.cache') ajaxSettings_cache_input: any;
|
|
@Input('ajaxSettings.contentType') ajaxSettings_contentType_input: any;
|
|
@Input('ajaxSettings.data') ajaxSettings_data_input: any;
|
|
@Input('ajaxSettings.dataType') ajaxSettings_dataType_input: any;
|
|
@Input('ajaxSettings.type') ajaxSettings_type_input: any;
|
|
@Input('customIcon.header') customIcon_header_input: any;
|
|
@Input('customIcon.selectedHeader') customIcon_selectedHeader_input: any;
|
|
@Input('options') options: any;
|
|
|
|
|
|
@Output('activate') activate_output = new EventEmitter();
|
|
@Output('ajaxBeforeLoad') ajaxBeforeLoad_output = new EventEmitter();
|
|
@Output('ajaxError') ajaxError_output = new EventEmitter();
|
|
@Output('ajaxLoad') ajaxLoad_output = new EventEmitter();
|
|
@Output('ajaxSuccess') ajaxSuccess_output = new EventEmitter();
|
|
@Output('beforeActivate') beforeActivate_output = new EventEmitter();
|
|
@Output('beforeInactivate') beforeInactivate_output = new EventEmitter();
|
|
@Output('create') create_output = new EventEmitter();
|
|
@Output('destroy') destroy_output = new EventEmitter();
|
|
@Output('inActivate') inActivate_output = new EventEmitter();
|
|
|
|
constructor(public el: ElementRef, public cdRef: ChangeDetectorRef, private _ejIterableDiffers: IterableDiffers, private _ejkeyvaluediffers: KeyValueDiffers) {
|
|
super('Accordion', el, cdRef, [], _ejIterableDiffers, _ejkeyvaluediffers);
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
export var EJ_ACCORDION_COMPONENTS: Type<any>[] = [AccordionComponent
|
|
];
|
|
|
|
|