docs
parent
83c3085c9b
commit
d74996725d
|
|
@ -6,12 +6,14 @@ import {FieldDocumentReadonlyComponent} from "@app/_modules/form-fields/types/do
|
|||
import {FieldDocumentSingleComponent} from "@app/_modules/form-fields/types/document/single/field-document-single.component";
|
||||
import {FieldDocumentMultipleComponent} from "@app/_modules/form-fields/types/document/multiple/field-document-multiple.component";
|
||||
import { WidjetModule } from '@app/_modules/widjet/widjet.module';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
ReactiveFormsModule,
|
||||
WidjetModule
|
||||
WidjetModule,
|
||||
FormsModule
|
||||
],
|
||||
declarations: [
|
||||
FormFieldDocumentComponent,
|
||||
|
|
|
|||
|
|
@ -13,6 +13,12 @@
|
|||
<div class="item" *ngFor="let asset of assets">
|
||||
<file-ico [type]="asset.extension"></file-ico>
|
||||
<a href="{{asset.links?.open}}" target="_blank">{{asset.name}}</a>
|
||||
<ico ico="delete_24" (click)="removeValue(asset)"></ico>
|
||||
<ico ico="delete_24" (click)="removeValue(asset)" [size]="[24,24]"></ico>
|
||||
<input type="text" [value]="asset.name" (change)="setFile($event)"/>
|
||||
<input type="text" />
|
||||
<ico></ico>
|
||||
<ico ico="done_24" (click)="setFile(asset)"></ico>
|
||||
<pre>{{asset|json}}</pre>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -95,4 +95,8 @@ export class FieldDocumentMultipleComponent {
|
|||
alert(error.error.message);
|
||||
});
|
||||
}
|
||||
|
||||
setFile(asset){
|
||||
console.log(asset)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -213,7 +213,10 @@ form-field-document{
|
|||
align-items: center;
|
||||
margin-top: 10px;
|
||||
gap:8px;
|
||||
|
||||
flex-wrap: wrap;
|
||||
input{
|
||||
flex-basis: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" id="ico">
|
||||
<path d="M9.54998 18.0001L3.84998 12.3001L5.27498 10.8751L9.54998 15.1501L18.725 5.9751L20.15 7.4001L9.54998 18.0001Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 254 B |
Loading…
Reference in New Issue