Files
psp_panel/src/app/shared/components/fields/guild_id.component.ts
T

14 lines
546 B
TypeScript
Raw Normal View History

import { CatalogGuildSelectComponent } from '@/shared/catalog/guild/components/select.component';
import { Component, Input } from '@angular/core';
import { FormControl, ReactiveFormsModule } from '@angular/forms';
@Component({
selector: 'field-guild-id',
template: `<catalog-guild-select label="صنف" [control]="control" [name]="name" />`,
imports: [ReactiveFormsModule, CatalogGuildSelectComponent],
})
export class GuildIdComponent {
@Input({ required: true }) control = new FormControl<string>('');
@Input() name = 'guild_id';
}