projects/i-components/src/lib/components/rectangle-fill/rectangle-fill.component.ts
Angular Component for the RectangleFill.
selector | wm-rectangle-fill |
styleUrls | ./rectangle-fill.component.scss |
templateUrl | ./rectangle-fill.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-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