projects/m2-core/src/lib/widget-modules/datatable-utils/img-preview.component.ts
| selector | img-preview |
| styles |
.img-preview-wrapper {
position: fixed;
z-index: 10000;
white-space: nowrap;
text-align: center;
background-color: #FEFEFE;
border-radius: 3px;
padding-right: 4px;
}
.img-preview {
vertical-align: middle;
max-height: 92%;
max-width: 92%;
}
|
| template | |
Properties |
Methods |
Inputs |
| ignorePhantomTargets |
Type : boolean
|
Default value : false
|
| imgHeight |
Type : number
|
Default value : 128
|
| imgWidth |
Type : number
|
Default value : 128
|
| Public hide |
hide()
|
|
Returns :
void
|
| ngOnInit |
ngOnInit()
|
|
Returns :
void
|
| Public show | ||||||||||||||||||||
show(event: Event, dataOrUrl: string, isData, target?: Element)
|
||||||||||||||||||||
|
Parameters :
Returns :
void
|
| imgSrc |
Type : string
|
| imgStyle |
Type : CSSStyleDeclaration
|
Default value : <CSSStyleDeclaration> {}
|
| wrapperStyle |
Type : CSSStyleDeclaration
|
Default value : <CSSStyleDeclaration> {}
|