-
Posts
19718 -
Joined
-
Last visited
-
Days Won
639
Content Type
Profiles
Forums
Events
Everything posted by Sherzod
-
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;
-
As I understood you want this on button click.
-
Okay. I will try.
-
Hello, Sorry, it's not very clear what you want.
-
Здравствуйте, Попробуйте такое решение. 1. CustomCSS: .customTree .x-tree-view { overflow: auto auto !important; } 2. UniTreeView.LayoutConfig->Cls = customTree
-
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]);
-
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.
-
There are many examples on the forum, use the search. Your case is not clear, please clarify, we will try to give an example.
-
Hello, Using ajaxRequest
-
translate tunicalendar and tunidatetimepicker at runtime
Sherzod replied to leandroavila74's topic in General
- 13 replies
-
- translate
- unicalendar
-
(and 1 more)
Tagged with:
-
Hello, I think you should not rely on such logic in the web ...
-
translate tunicalendar and tunidatetimepicker at runtime
Sherzod replied to leandroavila74's topic in General
Hello, Have you tried searching the forum? There are answers to some of your questions.- 13 replies
-
- translate
- unicalendar
-
(and 1 more)
Tagged with:
-
@ivanperu Which edition and build of UniGUI are you using?
-
Please adjust your forum email address:
-
GroupingFeature: Use a other column for Group Title in uniDBGrid
Sherzod replied to erich.wanker's topic in General
Hello Erich, Do you have a simple testcase to check? -
Hello, Can you please specify which edition and build of UniGUI are you using?
-
Пожалуйста, поменяйте тон!
-
Какой файл Вы загружаете?
-
У меня работает. Вы пути настраивали?
-
procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject); begin CustomFiles.Add('files/xx.js'); end;
-
Не загружайте там.