0.0.12 • Published 4 months ago

sgc-ng-field-form-edit v0.0.12

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

SgcNgFieldFormEdit

Custom SGC-NG-FIELD-FORM-EDIT UI Components based on Angular and Material. This component automatically generate SGC Component based on TypeFieldFormEdit


Component

SgcNgFieldFormEditComponent

@Component({
  selector: 'sgc-ng-field-form-edit',
  templateUrl: `./sgc-ng-field-form-edit.component.html`,
  styleUrls: [`./sgc-ng-field-form-edit.component.scss`],
})
class SgcNgFieldFormEditComponent implements OnInit {
  @Input() fieldForm!: TFieldFormEditData;
  @Output() fieldFormChange: EventEmitter<TFieldFormEditData> = new EventEmitter<TFieldFormEditData>();
  @Input() fieldSubmitted?: boolean = false;

//-----------------
}
PropriétéType donnéesDescription
fieldFormTFieldFormEditDataObjet décrivant le champ/composant graphique à utiliser dans le formulaire

Selector

<sgc-ng-field-form-edit></sgc-ng-field-form-edit>

Example

//--- Declare and Init TFieldFormPasswordData variable
class AppComponent implements OnInit {
  mysecret1!: TFieldFormEditData;

ngOnInit() {
    this.mysecret1={...TFieldFormPasswordDataDefault, name:'password1', label: 'Mon champ Password 1', disabled:false, showLabel:true, hidePassword:true};
  }
}
    <!-- HTML -->
    <sgc-ng-field-form-edit [(fieldForm)]="mysecret1"></sgc-ng-field-form-edit>
0.0.10

5 months ago

0.0.11

5 months ago

0.0.12

4 months ago

0.0.9

5 months ago

0.0.8

1 year ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago