File

projects/i-components/src/lib/components/rectangle-fill/rectangle-fill.component.ts

Description

Angular Component for the RectangleFill.

Implements

OnInit

Metadata

selector wm-rectangle-fill
styleUrls ./rectangle-fill.component.scss
templateUrl ./rectangle-fill.component.html

Index

Properties
Methods
Accessors

Methods

ngOnInit
ngOnInit()

On init lifecycle

Returns : void

void

Properties

solidColorBrushComponent
Type : SolidColorBrushComponent
Decorators :
@ContentChild(SolidColorBrushComponent)

SolidColorBrush definition of Component.

Accessors

solidColorBrushColor
getsolidColorBrushColor()

Returns the color for SolidColorBrush Component or Object(if it was set).

solidColorBrush
getsolidColorBrush()

Returns the SolidColorBrush Component or Object(if it was set).

import { ContentChild, Component, OnInit } from '@angular/core';
import { SolidColorBrushComponent } from '../solid-color-brush/solid-color-brush.component';

/**
 * Angular Component for the RectangleFill.
 *
 * @export
 * @class RectangleFillComponent
 * @implements {OnInit}
 */
@Component({
  selector: 'wm-rectangle-fill',
  templateUrl: './rectangle-fill.component.html',
  styleUrls: ['./rectangle-fill.component.scss'],
})
export class RectangleFillComponent implements OnInit {
  /**
   * SolidColorBrush definition of Component.
   *
   * @type {SolidColorBrushComponent}
   * @memberof RectangleFillComponent
   */
  @ContentChild(SolidColorBrushComponent)
  solidColorBrushComponent: SolidColorBrushComponent;

  /**
   * Returns the color for SolidColorBrush Component or Object(if it was set).
   *
   * @readonly
   * @memberof RectangleFillComponent
   */
  get solidColorBrushColor() {
    /* istanbul ignore else */
    return this.solidColorBrushComponent
      ? this.solidColorBrushComponent.color
      : null;
  }

  /**
   * Returns the SolidColorBrush Component or Object(if it was set).
   *
   * @readonly
   * @memberof RectangleFillComponent
   */
  get solidColorBrush() {
    /* istanbul ignore else */
    return this.solidColorBrushComponent
      ? this.solidColorBrushComponent.getBrush()
      : null;
  }

  /**
   * On init lifecycle
   *
   * @returns void
   */
  ngOnInit(): void {}
}
<div></div>

./rectangle-fill.component.scss

Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""