File

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

Description

Angular Component for the RectangleFill.

Implements

OnInit

Metadata

selector wm-rectangle-stroke
styleUrls ./rectangle-stroke.component.scss
templateUrl ./rectangle-stroke.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-stroke',
  templateUrl: './rectangle-stroke.component.html',
  styleUrls: ['./rectangle-stroke.component.scss'],
})
export class RectangleStrokeComponent implements OnInit {
  /**
   * SolidColorBrush definition of Component.
   *
   * @type {SolidColorBrushComponent}
   * @memberof RectangleStrokeComponent
   */
  @ContentChild(SolidColorBrushComponent)
  solidColorBrushComponent: SolidColorBrushComponent;

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

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

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

./rectangle-stroke.component.scss

Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""