mirror of https://github.com/apache/nifi.git
NIFI-13054: (#8676)
- Restoring Property Editor popups that provide EL Function documentation and Parameter descriptions. This closes #8676
This commit is contained in:
parent
31e1ce8f4c
commit
2af2a3956e
|
@ -15,7 +15,7 @@
|
|||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<div class="el-function-tooltip tooltip">
|
||||
<div class="el-function-tooltip tooltip" [style.left.px]="left" [style.bottom.px]="bottom">
|
||||
@if (data?.elFunction; as elFunction) {
|
||||
<div class="flex flex-col gap-y-3">
|
||||
<div class="el-name">{{ elFunction.name }}</div>
|
||||
|
|
|
@ -16,6 +16,9 @@
|
|||
*/
|
||||
|
||||
.el-function-tooltip {
|
||||
position: fixed;
|
||||
width: 400px;
|
||||
|
||||
.el-name {
|
||||
font-weight: bold;
|
||||
font-family: monospace;
|
||||
|
|
|
@ -29,6 +29,8 @@ import { ControllerServiceApi } from '../../controller-service/controller-servic
|
|||
styleUrls: ['./el-function-tip.component.scss']
|
||||
})
|
||||
export class ElFunctionTip {
|
||||
@Input() left = 0;
|
||||
@Input() bottom = 0;
|
||||
@Input() data: ElFunctionTipInput | null = null;
|
||||
|
||||
constructor(private nifiCommon: NiFiCommon) {}
|
||||
|
|
|
@ -15,12 +15,14 @@
|
|||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<div class="tooltip">
|
||||
<div class="tooltip parameter-tip" [style.left.px]="left" [style.bottom.px]="bottom">
|
||||
@if (data?.parameter; as parameter) {
|
||||
<div class="flex flex-col gap-y-3">
|
||||
<div class="parameter-name">{{ parameter.name }}</div>
|
||||
@if (hasDescription(parameter)) {
|
||||
<div>{{ parameter.description }}</div>
|
||||
} @else {
|
||||
<div class="unset nifi-surface-default">No description provided</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
|
|
@ -15,9 +15,14 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
.parameter-name {
|
||||
font-weight: 700;
|
||||
font-family: monospace;
|
||||
font-size: 16px;
|
||||
margin-bottom: 10px;
|
||||
.parameter-tip {
|
||||
position: fixed;
|
||||
width: 400px;
|
||||
|
||||
.parameter-name {
|
||||
font-weight: 700;
|
||||
font-family: monospace;
|
||||
font-size: 16px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,6 +29,8 @@ import { ControllerServiceApi } from '../../controller-service/controller-servic
|
|||
styleUrls: ['./parameter-tip.component.scss']
|
||||
})
|
||||
export class ParameterTip {
|
||||
@Input() left = 0;
|
||||
@Input() bottom = 0;
|
||||
@Input() data: ParameterTipInput | null = null;
|
||||
|
||||
constructor(private nifiCommon: NiFiCommon) {}
|
||||
|
|
Loading…
Reference in New Issue