You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2020/09/12 18:28:12 UTC
[incubator-streampipes] branch rel/0.67.0 updated: [hotfix] Add
radio group around oneof static property renderer
This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch rel/0.67.0
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
The following commit(s) were added to refs/heads/rel/0.67.0 by this push:
new 51899c3 [hotfix] Add radio group around oneof static property renderer
51899c3 is described below
commit 51899c3a128afb189a0c3476fa06775c7917490e
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Sat Sep 12 20:27:46 2020 +0200
[hotfix] Add radio group around oneof static property renderer
---
.../static-one-of-input/static-one-of-input.component.css | 6 ++++++
.../static-one-of-input/static-one-of-input.component.html | 14 ++++++++------
2 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/ui/src/app/core-ui/static-properties/static-one-of-input/static-one-of-input.component.css b/ui/src/app/core-ui/static-properties/static-one-of-input/static-one-of-input.component.css
index 6835726..982ae57 100644
--- a/ui/src/app/core-ui/static-properties/static-one-of-input/static-one-of-input.component.css
+++ b/ui/src/app/core-ui/static-properties/static-one-of-input/static-one-of-input.component.css
@@ -32,3 +32,9 @@
.description {
font-size: 10px;
}
+
+.radio-group {
+ display: flex;
+ flex-direction: column;
+ margin-top: 5px;
+}
diff --git a/ui/src/app/core-ui/static-properties/static-one-of-input/static-one-of-input.component.html b/ui/src/app/core-ui/static-properties/static-one-of-input/static-one-of-input.component.html
index 336cefb..1c78422 100644
--- a/ui/src/app/core-ui/static-properties/static-one-of-input/static-one-of-input.component.html
+++ b/ui/src/app/core-ui/static-properties/static-one-of-input/static-one-of-input.component.html
@@ -22,12 +22,14 @@
<div *ngIf="!staticProperty.horizontalRendering" fxLayout="column">
<div fxFlex fxLayout="row">
<div fxLayout="column" style="margin-left: 10px">
- <mat-radio-button *ngFor="let option of staticProperty.options" style="margin-top: -10px"
- (click)="select(option.elementId)" [checked]="option.selected">
- <label style="font-weight: normal">
- {{option.name}}
- </label>
- </mat-radio-button>
+ <mat-radio-group class="radio-group">
+ <mat-radio-button *ngFor="let option of staticProperty.options" style="margin-top: -10px"
+ [value]="option" (click)="select(option.elementId)" [checked]="option.selected">
+ <label style="font-weight: normal">
+ {{option.name}}
+ </label>
+ </mat-radio-button>
+ </mat-radio-group>
</div>
</div>
</div>