Browse Source

Update formText and tooltip properties in Dynamic-Form-Extensions.md

pull/19214/head
Sinan Öztürk 2 years ago
parent
commit
4e3310708e
  1. 6
      docs/en/UI/Angular/Dynamic-Form-Extensions.md

6
docs/en/UI/Angular/Dynamic-Form-Extensions.md

@ -184,8 +184,8 @@ As you see, passing `type` and `name` is enough to create a form prop. Here is w
- **options** is a callback that is called when a dropdown is needed. It must return an observable. (_default:_ `undefined`)
- **autocomplete** will be set as the `autocomplete` attribute of the input for the field. Please check [possible values](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#Values). (_default:_ `'off'`)
- **isExtra** indicates this prop is an object extension. When `true`, the value of the field will be mapped from and to `extraProperties` of the entity. (_default:_ `undefined`)
- - **formText** is the definition placed under the field . (_default:_ `undefined`)
- - **tooltip** is the tooltip for the field placed near of the label (_default:_ `undefined`)
- **formText** is the definition of the field. Placed under the field. (_default:_ `undefined`)
- **tooltip** is the tooltip for the field placed near of the label (_default:_ `undefined`)
> Important Note: Do not use `record` property of `PropData` in create form predicates and callbacks, because it will be `undefined`. You can use it on edit form contributors though.
@ -239,7 +239,7 @@ const options: FormPropOptions<IdentityUserDto> = {
},
autocomplete: 'off',
isExtra: true,
template: undefined | Type<any>,
template: undefined | Type<any>, // Custom angular component
tooltip: { text: 'Default::MyPropName_Tooltip', placement: 'top' },
formText: 'Default::MyPropName_Description',
};

Loading…
Cancel
Save