File

projects/k-components/src/lib/directives/clickactionparameter.directive.ts

Implements

OnInit

Metadata

Selector [clickActionParameter]

Index

Properties
Methods
Inputs

Inputs

clickActionParameter
Type : string
model
Type : any

Methods

ngOnInit
ngOnInit()
Returns : void

Properties

clickActionParameter
Type : string
Decorators :
@Input()
model
Type : any
Decorators :
@Input()
import { Directive, Input, OnInit } from '@angular/core';
import {
  DependencyProperty,
  ButtonBaseModel,
  UIElement,
  clickActionParameterProperty,
} from '@mobilize/wms-framework';

@Directive({
  selector: '[clickActionParameter]',
})
export class ClickActionParameterDirective implements OnInit {
  @Input()
  clickActionParameter: string;

  @Input()
  model: any;

  ngOnInit(): void {
    if (this.model instanceof UIElement) {
      this.model.setValue(
        clickActionParameterProperty,
        this.clickActionParameter
      );
    }
  }
}

result-matching ""

    No results matching ""