projects/i-components/src/lib/components/rectangle-stroke/rectangle-stroke.component.ts
Angular Component for the RectangleFill.
selector | wm-rectangle-stroke |
styleUrls | ./rectangle-stroke.component.scss |
templateUrl | ./rectangle-stroke.component.html |
Properties |
Methods |
Accessors |
ngOnInit |
ngOnInit()
|
On init lifecycle
Returns :
void
void |
solidColorBrushComponent |
Type : SolidColorBrushComponent
|
Decorators :
@ContentChild(SolidColorBrushComponent)
|
SolidColorBrush definition of Component. |
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