File

src/lib/markup-kit/modals/slide-up/slide-up.component.ts

Description

A component representing a slide-up modal window.

Example of usage:

<mefdev-slide-up-modal [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-up-modal>

https://mef.dev/ui_kit_demo/view/page_components/modals/slide_up

Implements

OnInit

Metadata

Index

Properties
Methods
Inputs
Outputs
Accessors

Constructor

constructor()

Inputs

show
Type : boolean

Flag indicating whether the modal should be shown or hidden. Set it to true to show the modal and false to hide it.

Outputs

visibleChange
Type : EventEmitter

Event emitted when the modal is change state. Emits a boolean value indicating if the modal is closed(false), or open(true).

Methods

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

Properties

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

Accessors

show
setshow(val: boolean)

Flag indicating whether the modal should be shown or hidden. Set it to true to show the modal and false to hide it.

Parameters :
Name Type Optional
val boolean No
Returns : void

results matching ""

    No results matching ""