[CLOSED] [0.8.2] Notifications and js troubles.

  1. #1

    [CLOSED] [0.8.2] Notifications and js troubles.


    Hi vladimir,

    I know that you can help me :P. How can I do a notification in js like below ones?

    **VB Code**

    Sub InfoBtnClick(ByVal sender As Object, ByVal e As Coolite.Ext.Web.AjaxEventArgs)
    
            Dim Configuracion As New Coolite.Ext.Web.Notification.Config
            Dim Alineacion As New Coolite.Ext.Web.Notification.AlignConfig
    
            Dim Fx As New Coolite.Ext.Web.Fx.Config
    
            Fx.Easing = Coolite.Ext.Web.Easing.BounceOut
    
            Alineacion.ElementAnchor = Coolite.Ext.Web.AnchorPoint.BottomRight
            Alineacion.TargetAnchor = Coolite.Ext.Web.AnchorPoint.BottomRight
            Alineacion.OffsetX = -20
            Alineacion.OffsetY = -20
    
            Configuracion.Title = "Introducción de variantes"
            Configuracion.AlignCfg = Alineacion
            Configuracion.BodyStyle = "padding:10px"
            Configuracion.Width = 600
            Configuracion.Height = 340
            Configuracion.Html = "Message here..."
            Configuracion.ShowPin = True
            Configuracion.Pinned = True
    
    
            Coolite.Ext.Web.Ext.Notification.Show(Configuracion)
            
    End Sub
    I only know how to do that ones...

    **JavaScript**

     function MsgInfo1() { 
                Coolite.Ext.Notification.show({title:'Introducción de variantes', 
                                               html:'Message here...',
                                               height:340,
                                               width: 600,
                                               });
        }
    By the other hand I'm not able to find documentation about Coolite.Ext.Notification.show properties... (in extjs doc's it's hard to me to find things, could you help me???)

    Thanks,

    FVNoel

  2. #2

    RE: [CLOSED] [0.8.2] Notifications and js troubles.

    Hi,

    Please see the following sample
    https://examples1.ext.net/#/MessageB..._Notification/


    It is 1.0 version example but syntax the same for 0.8.2 (just need replace 'Ext.net.Notification' by 'Coolite.Ext.Notification')
  3. #3

    RE: [CLOSED] [0.8.2] Notifications and js troubles.

    Or, shorthand syntax is to call the Ext.Msg.notify function.

    Example


    Ext.Msg.notify("My Message", "Hello World!");

    Hope this helps.


    Geoffrey McGill
    Founder
  4. #4

    RE: [CLOSED] [0.8.2] Notifications and js troubles.


    Hello,


    Two good ways to improve my code. A lot of thanks to both, you solved my headache :P.


    Greetings,


    FVNoel

Similar Threads

  1. [CLOSED] Show notifications without spaces between Notifications
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 20, 2012, 4:24 PM
  2. Troubles with Javascript during rendering
    By Paul D in forum 1.x Help
    Replies: 2
    Last Post: Nov 08, 2010, 11:15 AM
  3. [CLOSED] Help with some troubles
    By smart+ in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 09, 2010, 3:36 PM
  4. [CLOSED] [1.0] Notifications
    By state in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 23, 2009, 2:57 PM
  5. [CLOSED] Notifications
    By state in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 27, 2009, 3:14 PM

Posting Permissions