Serg Posted October 29, 2019 Share Posted October 29, 2019 procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniToolButton31, JSInterface do begin JSCode('async function uniPaste(input) { '+ ' const text = await navigator.clipboard.readText(); '+ ' input.setValue(text); '+ ' };'); JSAddListener('click', JSFunction('sender','uniPaste('+ UniMemo1.JSName+'); ')); end; ------------------------ Ошибка: no.. JavaScript Object Quote Link to comment Share on other sites More sharing options...
Serg Posted October 29, 2019 Author Share Posted October 29, 2019 Для UniBitBtn работает Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.