This commit is contained in:
parent
36846164bd
commit
ca666c9ef8
8 changed files with 559 additions and 138 deletions
frontend/src/models
21
frontend/src/models/AutocompleteValue.ts
Normal file
21
frontend/src/models/AutocompleteValue.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
class AutocompleteValue {
|
||||
value: string;
|
||||
label: string;
|
||||
data?: any | null = undefined;
|
||||
|
||||
constructor(record: {
|
||||
value: string;
|
||||
label: string;
|
||||
data?: any | null;
|
||||
}) {
|
||||
this.value = record.value;
|
||||
this.label = record.label;
|
||||
this.data = record.data;
|
||||
}
|
||||
|
||||
toString(): string {
|
||||
return this.label;
|
||||
}
|
||||
}
|
||||
|
||||
export default AutocompleteValue;
|
Loading…
Add table
Add a link
Reference in a new issue