Hi,
I need to change some properties of this component at runtime. In detail I want to change:
property Filter: string read GetFilter write SetFilter;
property MaxAllowedSize: Cardinal read GetMaxAllowedSize write SetMaxAllowedSize;
property MultipleFiles: Boolean read GetMultipleFiles write SetMultipleFiles;
property Messages:TUniCustomUploadMessages read GetMessages write SetMessages;
Thank you and regards,
Kattes
Try this approach for now:
procedure TMainForm.UniButton1Click(Sender: TObject);
begin
with UniFileUploadButton1 do
begin
Filter := '.pdf,.txt';
JSInterface.JSCall('fileInputEl.dom.setAttribute', ['accept', Filter]);
end;
end;