File

src/app/modules/shared/components/contentlock-info-popup/contentlock-info-popup.component.ts

Implements

OnInit

Metadata

Index

Properties
Methods
Inputs
Outputs

Constructor

constructor(resourceService: ResourceService)

Constructor to create injected service(s) object

Parameters :
Name Type Optional Description
resourceService ResourceService No

Reference of ResourceService

Inputs

content
Type : any

Outputs

closeEvent
Type : EventEmitter

Methods

Public closeModal
closeModal()
Returns : void
ngOnInit
ngOnInit()
Returns : void

Properties

modal
Decorators :
@ViewChild('modal')
Public resourceService
Type : ResourceService
Reference of ResourceService
import { Component, OnInit, ViewChild, Input, EventEmitter, Output } from '@angular/core';
import { ResourceService } from '../../services/index';

@Component({
  selector: 'app-contentlock-info-popup',
  templateUrl: './contentlock-info-popup.component.html'
})

export class LockInfoPopupComponent implements OnInit {

  @ViewChild('modal') modal;
  @Input() content;
  @Output() closeEvent = new EventEmitter<any>();
  /**
	 * Constructor to create injected service(s) object
	 *
   * @param {ResourceService} resourceService Reference of ResourceService
	 */

  constructor(public resourceService: ResourceService) {
  }

  ngOnInit() {
  }

  public closeModal() {
    this.modal.approve();
    this.closeEvent.emit();
  }
}
<app-modal-wrapper [config]="{disableClose: true, size: 'small'}" (dismiss)="closeModal()" #modal>
    <ng-template sbModalContent>
        <div class="sb-modal">
            <div class="transition ui dimmer page modals active visible">
                <div class="ui modal transition active visible small">
                    <!--Header-->
                    <div class="sb-modal-header">
                        &nbsp;
                    </div>
                    <!--/Header-->
                    <!--Content-->
                    <div class="sb-modal-content">
                        <div class="ui center aligned segment">
                            <div class="header cardsHeading">
                                {{resourceService?.frmelmnts?.lbl?.lockPopupTitle |
                                interpolate:'{collaborator}':content.lockInfo.creatorInfo.name |
                                interpolate:'{contentName}':content?.name}}
                            </div>
                        </div>
                    </div>
                    <!--/Content-->
                    <!--Actions-->
                    <div class="sb-modal-actions">
                        <button class="sb-btn sb-btn-normal sb-btn-primary" (click)="closeModal()" tabindex="0">
                            {{resourceService.frmelmnts?.btn?.ok}}
                        </button>
                    </div>
                    <!--/Actions-->

                </div>
            </div>
        </div>
    </ng-template>
</app-modal-wrapper>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""