Jump to content

Sherzod

Moderators
  • Posts

    19683
  • Joined

  • Last visited

  • Days Won

    635

Everything posted by Sherzod

  1. Здравствуйте, Я попробую проанализировать.
  2. Sorry. TdxMemData Can you make a simple testcase with standard components?
  3. Sorry, do you have a simple testcase!?
  4. Simple usage: procedure TMainForm.UniButton1Click(Sender: TObject); begin try Sleep(5000); finally JSInterface.JSCall('setDisabled', [False], (Sender as TUniButton).JSControl) end; end; procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniButton1.JSInterface do begin JSConfig('_iconCls', ['x-fa fa-save']); JSConfig('iconAlign', ['right']); JSAddListener('disable', 'function(){this.setIconCls("x-fa fa-spinner fa-spin")}'); JSAddListener('enable', 'function(){this.setIconCls(this.getConfig("_iconCls"))}'); JSAddListener('click', 'function(){this.setDisabled(true)}'); end; end;
  5. Hi, Can you please try this workaround? uniChart.pas procedure TUniCustomChart.LoadCompleted; begin ConfigChart; FSeriesDataChanged := False; FAxes.FAxisA.FAxesLabelsChanged := False; FAxes.FAxisB.FAxesLabelsChanged := False; inherited; if IsMobile then // workaround for UNG-3319 JSCall('handleResize', [nil, False], FJSChart); if Color = clWhite then JSBodyCls := 'x-panel-white' else JSConfig('background', [uniColor2Web(Color)], FJSChart); end;
  6. Hello, What alignment are you using? On the server or client side?
  7. Hello, Which build are you using? Can you please make a simple testcase and attach here?
  8. Hello @loQsoft I don't know, this solution was for the old version. Need to investigate.
  9. Hello, Which edition and build of UniGUI are you using?
  10. Hello, First of all, please specify which edition and build of UniGUI are you using?
  11. Sherzod

    deferredRender

    Hello, What code are you using? JSConfig?
  12. Hi, Okay, try this approach: 1. MainmForm -> ClientEvents -> ExtEvents -> function window.painted(sender, eOpts) { var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection; var type = connection.effectiveType; function updateConnectionStatus() { //console.log("Connection type changed from " + type + " to " + connection.effectiveType); type = connection.type || connection.effectiveType; ajaxRequest(sender, "connectionType", ["ctype="+type]); } updateConnectionStatus(); connection.addEventListener('change', updateConnectionStatus); } 2. Usage: procedure TMainmForm.UnimFormAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = 'connectionType' then UnimLabel1.Caption := Params.Values['ctype'] end;
  13. So far I haven't been able to find a way to pass these values...
  14. But again, pay attention to this:
  15. Sorry again for the clarification. How do you pass this data to the app?
  16. In the browser console.
  17. Hello, https://developer.mozilla.org/en-US/docs/Web/API/Network_Information_API
×
×
  • Create New...