mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
AAE-22724 Fix json widget display (#10248)
This commit is contained in:
parent
e0e89cfa3b
commit
9e70aad67d
@ -0,0 +1,8 @@
|
||||
<div class="adf-json-widget">
|
||||
<div class="adf-json-widget-label">
|
||||
<label class="adf-label" [attr.for]="field.id">
|
||||
{{ field.name | translate }}
|
||||
</label>
|
||||
</div>
|
||||
<button mat-raised-button color="primary" (click)="view()">json</button>
|
||||
</div>
|
@ -0,0 +1,11 @@
|
||||
.adf {
|
||||
&-json-widget {
|
||||
width: 100%;
|
||||
|
||||
&-label {
|
||||
.adf-label {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -21,10 +21,13 @@ import { MatDialog } from '@angular/material/dialog';
|
||||
import { EditJsonDialogSettings, EditJsonDialogComponent } from '../../../../dialogs/edit-json/edit-json.dialog';
|
||||
import { FormService } from '../../../services/form.service';
|
||||
import { WidgetComponent } from '../widget.component';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
template: ` <button mat-raised-button color="primary" (click)="view()">json</button> `,
|
||||
templateUrl: './json.widget.html',
|
||||
styleUrls: ['./json.widget.scss'],
|
||||
host: {
|
||||
'(click)': 'event($event)',
|
||||
'(blur)': 'event($event)',
|
||||
@ -36,7 +39,7 @@ import { WidgetComponent } from '../widget.component';
|
||||
'(invalid)': 'event($event)',
|
||||
'(select)': 'event($event)'
|
||||
},
|
||||
imports: [MatButtonModule],
|
||||
imports: [TranslateModule, MatFormFieldModule, MatButtonModule],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class JsonWidgetComponent extends WidgetComponent {
|
||||
|
Loading…
x
Reference in New Issue
Block a user