From 7f934b1bb2895418d5e8185ce905e6940f56de16 Mon Sep 17 00:00:00 2001 From: MiguelKenzo Date: Tue, 6 May 2025 13:26:33 +0200 Subject: [PATCH] seccion 3 --- src/app/app.component.ts | 48 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 733ee68..67fa4cf 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -45,6 +45,54 @@ export class AppComponent implements OnInit { props: { label: 'Entorno' }, fieldGroup: [ //Configura aqui la seccion 3 + + { + key: 'aplication', + type: 'input', + props: { + label: 'Aplicación', + required: true + } + }, + { + key: 'enviroment', + type: 'select', + props: { + label: 'Entorno', + required: true, + options:[ + {label:'PRO', id : '1', value : 'PRO'}, + {label:'PRE', id : '2', value : 'PRE'}, + {label:'DEV', id : '3', value : 'DEV'} + ] + }, + + }, + { + key: 'category', + type: 'select', + props: { + label: 'Categoría', + disabled: true, + options:[ + {label:'PRO', id : '1', value : 'PRO'}, + {label:'PRE', id : '2', value : 'PRE'}, + {label:'DEV', id : '3', value : 'DEV'} + ] + }, + expressions: { + "props.disabled": (field: FormlyFieldConfig)=>{ + if(this.form.get('enviroment')?.value === undefined){ + return false + }else{} + return true + } + } + + + } + + ], }, {