File

projects/k-components/src/lib/components/togglebutton/togglebutton.component.ts

Metadata

changeDetection ChangeDetectionStrategy.OnPush
selector wm-toggle-button
templateUrl ./togglebutton.component.html

Index

Properties
Methods
Inputs
Outputs

Inputs

itemCheck
Type : boolean
model
Type : ToggleButtonModel

Outputs

click
Type : EventEmitter<any>
itemCheckChange
Type : EventEmitter<any>

Methods

ngOnInit
ngOnInit()
Returns : void

Properties

click
Type : EventEmitter<any>
Default value : new EventEmitter()
Decorators :
@Output()
itemCheck
Type : boolean
Decorators :
@Input()
itemCheckChange
Type : EventEmitter<any>
Default value : new EventEmitter()
Decorators :
@Output()
model
Type : ToggleButtonModel
Decorators :
@Input()
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { AngularComponentId } from '@mobilize/wms-framework';
import { ComponentId } from '@mobilize/wms-framework';
import { ToggleButtonModel } from '@mobilize/wms-framework';

@Component({
  selector: 'wm-toggle-button',
  templateUrl: './togglebutton.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
@ComponentId([AngularComponentId.toggleButton])
export class ToggleButton {
  @Input()
  model: ToggleButtonModel;
  @Output()
  click: EventEmitter<any> = new EventEmitter();

  @Input()
  itemCheck: boolean;
  @Output()
  itemCheckChange: EventEmitter<any> = new EventEmitter();

  ngOnInit(): void {
    this.model = this.model ?? new ToggleButtonModel();
  }
}
<button>
  <ng-content></ng-content>
</button>
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""