Browse Source

deprecate centered, modalClass, size inputs of the modal component

pull/7481/head
mehmet-erim 6 years ago
parent
commit
cb8d13239f
  1. 18
      npm/ng-packs/packages/theme-shared/src/lib/components/modal/modal.component.ts

18
npm/ng-packs/packages/theme-shared/src/lib/components/modal/modal.component.ts

@ -29,6 +29,19 @@ export type ModalSize = 'sm' | 'md' | 'lg' | 'xl';
providers: [SubscriptionService],
})
export class ModalComponent implements OnDestroy {
/**
* @deprecated Use centered property of options input instead. To be deleted in v5.0.
*/
@Input() centered = false;
/**
* @deprecated Use windowClass property of options input instead. To be deleted in v5.0.
*/
@Input() modalClass = '';
/**
* @deprecated Use size property of options input instead. To be deleted in v5.0.
*/
@Input() size: ModalSize = 'lg';
@Input()
get visible(): boolean {
return this._visible;
@ -50,11 +63,6 @@ export class ModalComponent implements OnDestroy {
this._busy = value;
}
@Input() centered = false;
@Input() modalClass = '';
@Input() size: ModalSize = 'lg';
@Input() options: NgbModalOptions = {};
@Input() suppressUnsavedChangesWarning = this.suppressUnsavedChangesWarningToken;

Loading…
Cancel
Save