Hybrid View

  1. #1
    Sencha User Gunmen's Avatar
    Join Date
    Jul 2007
    Posts
    305
    Vote Rating
    0
    Gunmen is on a distinguished road

      0  

    Question Where can I find Ext.example.msg?

    Where can I find Ext.example.msg?


    Hi,

    In which file can I find Ext.example.msg? I want to know how to show the 'top' message box.

    Thanks!

  2. #2
    Sencha User michaelc's Avatar
    Join Date
    Dec 2007
    Location
    Bay Area - CA
    Posts
    507
    Vote Rating
    0
    michaelc is on a distinguished road

      0  

    Default


    Quote Originally Posted by Gunmen View Post
    Hi,

    In which file can I find Ext.example.msg? I want to know how to show the 'top' message box.

    Thanks!
    I think your referring to the samples ?
    then you would find it in examples.js in ../shared/examples.js

    Code:
      
    Ext.example = function(){
        var msgCt;
    
        function createBox(t, s){
            return ['<div class="msg">',
                    '<div class="x-box-tl"><div class="x-box-tr"><div class="x-box-tc"></div></div></div>',
                    '<div class="x-box-ml"><div class="x-box-mr"><div class="x-box-mc"><h3>', t, '</h3>', s, '</div></div></div>',
                    '<div class="x-box-bl"><div class="x-box-br"><div class="x-box-bc"></div></div></div>',
                    '</div>'].join('');
        }
        return {
            msg : function(title, format){
                if(!msgCt){
                    msgCt = Ext.DomHelper.insertFirst(document.body, {id:'msg-div'}, true);
                }
                msgCt.alignTo(document, 't-t');
                var s = String.format.apply(String, Array.prototype.slice.call(arguments, 1));
                var m = Ext.DomHelper.append(msgCt, {html:createBox(title, s)}, true);
                m.slideIn('t').pause(1).ghost("t", {remove:true});
            },
    
            init : function(){
                var t = Ext.get('exttheme');
                if(!t){ // run locally?
                    return;
                }
                var theme = Cookies.get('exttheme') || 'aero';
                if(theme){
                    t.dom.value = theme;
                    Ext.getBody().addClass('x-'+theme);
                }
                t.on('change', function(){
                    Cookies.set('exttheme', t.getValue());
                    setTimeout(function(){
                        window.location.reload();
                    }, 250);
                });
    
                var lb = Ext.get('lib-bar');
                if(lb){
                    lb.show();
                }
            }
        };
    }();

  3. #3
    Ext User
    Join Date
    Feb 2008
    Posts
    16
    Vote Rating
    0
    AlexandreF is on a distinguished road

      0  

    Exclamation css

    css


    ... and don't forget to take the appropriate css properties too from the example css file.

  4. #4
    Sencha User Gunmen's Avatar
    Join Date
    Jul 2007
    Posts
    305
    Vote Rating
    0
    Gunmen is on a distinguished road

      0  

    Default


    Ahaa, thank you guys!

  5. #5
    Sencha User
    Join Date
    Apr 2013
    Posts
    10
    Vote Rating
    0
    deepakbellale is on a distinguished road

      0  

    Default which files i have to take from package

    which files i have to take from package


    which files i have to take from package? I need only Ext.examples.alert functionality

    Sorry I'm new to Extjs

  6. #6
    Sencha User
    Join Date
    Jan 2014
    Posts
    3
    Vote Rating
    0
    sofien007 is on a distinguished road

      0  

    Default


    Hi, for the version 4.2.1, you can find in installation folder like : ext-4.2.1.883\examples\shared\examples

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar