@po-ui/ng-templates 19.2.0 → 19.3.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4351,6 +4351,37 @@ class PoPageDynamicEditComponent {
4351
4351
  detailActionNew() {
4352
4352
  this.gridDetail.insertRow();
4353
4353
  }
4354
+ /**
4355
+ * Método que exibe `additionalHelpTooltip` ou executa a ação definida em `additionalHelp`.
4356
+ * Para isso, será necessário configurar uma tecla de atalho utilizando o evento `keydown`.
4357
+ *
4358
+ * ```
4359
+ * import { PoPageDynamicEditModule } from '@po-ui/ng-templates';
4360
+ * ...
4361
+ * @ViewChild('dynamicEdit', { static: true }) dynamicEdit: PoPageDynamicEditComponent;
4362
+ *
4363
+ * fields: Array<PoPageDynamicEditField> = [
4364
+ * {
4365
+ * property: 'name',
4366
+ * ...
4367
+ * help: 'Mensagem de ajuda.',
4368
+ * additionalHelpTooltip: 'Mensagem de ajuda complementar.',
4369
+ * keydown: this.onKeyDown.bind(this, 'name')
4370
+ * },
4371
+ * ]
4372
+ *
4373
+ * onKeyDown(property: string, event: KeyboardEvent): void {
4374
+ * if (event.code === 'F9') {
4375
+ * this.dynamicEdit.showAdditionalHelp(property);
4376
+ * }
4377
+ * }
4378
+ * ```
4379
+ *
4380
+ * @param { string } property Identificador da coluna.
4381
+ */
4382
+ showAdditionalHelp(property) {
4383
+ this.dynamicForm.showAdditionalHelp(property);
4384
+ }
4354
4385
  get duplicates() {
4355
4386
  return [...this._duplicates];
4356
4387
  }