Jump to content

Sherzod

Moderators
  • Posts

    19718
  • Joined

  • Last visited

  • Days Won

    639

Everything posted by Sherzod

  1. 1. UniButton1.ClientEvents.ExtEvents -> function click(sender, e, eOpts) { ajaxRequest(sender, 'getLocalTime', ['time='+new Date().toLocaleTimeString()]); } 2. UniButton1.OnAjaxEvent -> procedure TMainForm.UniButton1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = 'getLocalTime' then begin (Sender as TUniButton).CustomAttribs.Values['clienttime'] := Params.Values['time']; end; end; 3. UniButton1.OnClick -> procedure TMainForm.UniButton1Click(Sender: TObject); begin ShowMessage((Sender as TUniButton).CustomAttribs.Values['clienttime']) end;
  2. As I understood you want this on button click.
  3. Hello, Sorry, it's not very clear what you want.
  4. Здравствуйте, Попробуйте такое решение. 1. CustomCSS: .customTree .x-tree-view { overflow: auto auto !important; } 2. UniTreeView.LayoutConfig->Cls = customTree
  5. 1. Create a component considering the mobile version. 2. UniAddCSSLibrary('build/packages/ux/modern/material/resources/ux-all.css', False, [upoFolderJS, upoPlatformMobile]); UniAddJSLibrary('build/packages/ux/modern/ux.js', False, [upoFolderJS, upoPlatformMobile]);
  6. Removing this dependency: initialization UniAddCSSLibrary('build/packages/ux/classic/classic/resources/ux-all.css', False, [upoFolderJS, upoPlatformDesktop]); UniAddJSLibrary('build/packages/ux/classic/ux.js', False, [upoFolderJS, upoPlatformDesktop]); UniAddJSLibrary('xx.js', False, [upoFolderFiles]); //<------------- xx.js: Ext.ux.colorpick.ColorUtils.parseColor = function(d, g) { if (!d) { return null } var e = this, f = e.colorMap[d], b, c, h; if (f) { c = { r: f[0], g: f[1], b: f[2], a: 1 } } else if (d === 'transparent') { c = { r: 0, g: 0, b: 0, a: 0 } } else { b = e.hexRe.exec(d); if (b) { b = b[1]; switch (b.length) { default: return null; case 3: c = { r: parseInt(b[0] + b[0], 16), g: parseInt(b[1] + b[1], 16), b: parseInt(b[2] + b[2], 16), a: 1 }; break; case 6: case 8: c = { r: parseInt(b.substr(0, 2), 16), g: parseInt(b.substr(2, 2), 16), b: parseInt(b.substr(4, 2), 16), a: parseInt(b.substr(6, 2) || 'ff', 16) / 255 }; break; } } else { b = e.rgbaRe.exec(d); if (b) { c = { r: parseFloat(b[1]), g: parseFloat(b[2]), b: parseFloat(b[3]), a: parseFloat(b[4]) } } else { b = e.rgbaAltRe.exec(d); if (b) { c = e.parseColor(b[1]); c.a = parseFloat(b[2]); return c } b = e.rgbRe.exec(d); if (b) { c = { r: parseFloat(b[1]), g: parseFloat(b[2]), b: parseFloat(b[3]), a: 1 } } else { return null } } } } if (g) { //c.a = Ext.util.Format.number(c.a, g); c.a = c.a.toFixed(2); } h = this.rgb2hsv(c.r, c.g, c.b); return Ext.apply(c, h) } I think this is enough and it won't affect other parts of the framework that use this method.
  7. There are many examples on the forum, use the search. Your case is not clear, please clarify, we will try to give an example.
  8. Hello, I think you should not rely on such logic in the web ...
  9. Hello, Have you tried searching the forum? There are answers to some of your questions.
  10. You can, but only a simple test case so that I can understand the main point, not the whole project.
  11. Sherzod

    Falcon FSMap

    @ivanperu Which edition and build of UniGUI are you using?
  12. Please adjust your forum email address:
  13. Hello, Can you please specify which edition and build of UniGUI are you using?
  14. Пожалуйста, поменяйте тон!
  15. Какой файл Вы загружаете?
  16. У меня работает. Вы пути настраивали?
  17. Вы следуете инструкциям? http://unigui.com/doc/online_help/trial-edition.htm
  18. procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject); begin CustomFiles.Add('files/xx.js'); end;
  19. Hello @andyhill Sorry, of course not always, but sometimes a minimal test case helps us.
×
×
  • Create New...