File
Metadata
selector |
wm-mock-content |
template |
<wm-content-control
[name]="name"
[content]="content"
[contentTemplate]="contentTemplate"
[visibility]="visible"
[isEnabled]="isEnabled"
[fontSize]="fontSize"
[fontWeight]="fontWeight"
[isTabStop]="isTabStop"
[foreground]="foreground"
>
</wm-content-control>
|
content
|
Type : string
|
Default value : 'this is a content'
|
|
contentTemplate
|
Default value : new DataTemplate()
|
|
fontSize
|
Type : number
|
Default value : 25
|
|
fontWeight
|
Type : number
|
Default value : 25
|
|
foreground
|
Type : string
|
Default value : 'Red'
|
|
isEnabled
|
Default value : true
|
|
isTabStop
|
Default value : true
|
|
name
|
Type : string
|
Default value : 'contentControl1'
|
|
visible
|
Default value : true
|
|
import { Component } from '@angular/core';
import { DataTemplate } from '@mobilize/wms-framework';
@Component({
selector: 'wm-mock-content',
template: `
<wm-content-control
[name]="name"
[content]="content"
[contentTemplate]="contentTemplate"
[visibility]="visible"
[isEnabled]="isEnabled"
[fontSize]="fontSize"
[fontWeight]="fontWeight"
[isTabStop]="isTabStop"
[foreground]="foreground"
>
</wm-content-control>
`,
styles: [],
})
export class ContentControlMockComponent {
content = 'this is a content';
contentTemplate = new DataTemplate();
name = 'contentControl1';
visible = true;
isEnabled = true;
fontSize = 25;
fontWeight = 25;
isTabStop = true;
foreground = 'Red';
}
Legend
Html element with directive