Search the Community
Showing results for tags 'notification'.
-
notification uniGUI - Module Notification
Fred Montier posted a topic in Components and Code Samples
uniGUI - Module Notification This notification lib is different since it injects the notification inside a module container. So, is perfect for a non intrusive like dashboards and works perfectly with native uniGUI controls. Module-Noty.mp4 Download project below. Only for uniGUI subscribers. Project19-ModuleNotification.rar -
Hi Follows a tip for using the notification by the browser. Add push_notification.js in folder files Add in the uniServerModule->CustomFiles To dispare notification: procedure FenixNotification(pTitle, pMessage:String); var vJS: String; begin vjs := format('jQuery(document).ready(function($){$.notify("%s",{title: "%s", icon: "http:\\dominio.com\yourimage.png"});});',[pMessage,pTitle]); UniSession.AddJS(vjs); end; procedure TFMenu.ButtonNotrClick(Sender: TObject); begin FenixNotification('Fenix','Your session is expiring.'; end; Best regards push_notification.zip
-
This is a Push Example done by Sherzod. Nice example and some minor little improvements by me. Since I may transform it into a component to CodeInjector package, is fair to give it back to the community the source code, as Sherzod made it, in a complete and useful example. Improvements: a- Function A allows easy implementation of the whole Push Message, icon definition, Timeout and little tweaks. b- Function B (same as A) and allows redirect onClick over push message dialog. See source code. I just did simple stuff. Buy him a coffee. He is the uniGUI Master Blaster !! Thanks Sherzod. PS: Note, Is not in the CodeInjector Package , as a self-contained component, yet. I may include it in the next release in few weeks. But basically is what is here. In the next release: Cookies, LocalStorage and PUSH components. Project available only in the pack Silver at https://www.unigui.express
- 1 reply
-
- 3
-
-
- notification
- alerts
-
(and 1 more)
Tagged with: