Criar ou editar Unit Converter

@if (editForm.controls.id.value == null) { } @else { }
@if (editForm.controls.id.value == null) { } @else { }
@if (editForm.get('name')!.invalid && (editForm.get('name')!.dirty || editForm.get('name')!.touched)) {
@if (editForm.get('name')?.errors?.required) { O campo é obrigatório. }
}
@if (editForm.get('description')!.invalid && (editForm.get('description')!.dirty || editForm.get('description')!.touched)) {
@if (editForm.get('description')?.errors?.required) { O campo é obrigatório. }
}
{{ '' // Add fa-icon 'faCaretDown' to /app/config/font-awesome-icons.ts }} {{ '' // Add fa-icon 'faCaretUp' to /app/config/font-awesome-icons.ts }} help
Formula helper

Formula fields provide a powerfull way of configuration and calculation. Use any of SpEL language anf funtions.

In this context, the following functions are added:

  • #value - the value to be converted
  • #fromUnit - the Unit in wich the value is expressed
  • #toUnit - the target Unit, that the value will be converted
  • #variable - the current Variable instance
  • #classCode - the class code selected, if any. (might be empty)