src/lib/markup-kit/modals/slide-right/slide-right.component.ts
A component representing a slide-right modal window.
Example of usage:
<mefdev-slide-right-modal [size]="ModalSize.lg" [show]="showModal">
<ng-template #modal_header>
<h4>Modal Header</h4>
</ng-template>
<ng-template #modal_footer>
<button (click)="closeModal()">Close</button>
</ng-template>
<div class="modal-body">
Content goes here...
</div>
</mefdev-slide-right-modal>
OnInit
selector | mefdev-slide-right-modal |
styleUrls | ./slide-right.component.scss |
templateUrl | ./slide-right.component.html |
Properties |
|
Methods |
|
Inputs |
Outputs |
Accessors |
constructor()
|
show |
Type : boolean
|
Flag indicating whether the modal should be shown or hidden.
Set it to |
size |
Type : ModalSize
|
Default value : ModalSize.md
|
Size of the modal.
Defaults to |
getModalState |
getModalState()
|
Shows the modal state. Return a boolean value indicating if the modal is closed(false), or open(true)
Returns :
boolean
|
Public hideModal |
hideModal()
|
Hides the modal. Call this method to close the modal window.
Returns :
void
|
Public showModal |
showModal()
|
Shows the modal. Call this method to open the modal window.
Returns :
void
|
Protected dialog |
Type : ElementRef
|
Decorators :
@ViewChild('dialog')
|
modal_footer |
Type : TemplateRef<void>
|
Decorators :
@ContentChild('modal_footer')
|
Reference to the template for the modal footer. Use this template to customize the footer of the modal. |
modal_header |
Type : TemplateRef<void>
|
Decorators :
@ContentChild('modal_header')
|
Reference to the template for the modal header. Use this template to customize the header of the modal. |
Protected visible |
Type : boolean
|
Default value : false
|
show | ||||||
setshow(val: boolean)
|
||||||
Flag indicating whether the modal should be shown or hidden.
Set it to
Parameters :
Returns :
void
|