1. #1
    Ext User
    Join Date
    Feb 2009
    Location
    Egypt
    Posts
    14
    Vote Rating
    0
    mrmalaa is on a distinguished road

      0  

    Default How to disable background

    How to disable background


    Hi all

    Please I cannot disable a background when show a new window.

    I want to make it as alert in ext but don't know how.

    Thanks in advance.

  2. #2
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,506
    Vote Rating
    373
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Post please your window creation code.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  3. #3
    Ext User
    Join Date
    Feb 2009
    Location
    Egypt
    Posts
    14
    Vote Rating
    0
    mrmalaa is on a distinguished road

      0  

    Default


    var w=new Ext.Window({
    width:500,
    height:500,
    layout:'border',
    items:[{
    region:'center',
    xtype:'panel',
    items:[code_panel]
    }]
    });
    w.show();

  4. #4
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,506
    Vote Rating
    373
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Now, I don't know which background you mean. If you have a border layout in the window, background of the window itself is irrelevant as you have regions over it anyway.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  5. #5
    Ext User
    Join Date
    Feb 2009
    Location
    Egypt
    Posts
    14
    Vote Rating
    0
    mrmalaa is on a distinguished road

      0  

    Default


    Background I mean, The browser background that is constructed with viewport Ext container.

    Thanks for your concentration.

  6. #6
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,506
    Vote Rating
    373
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Ext.Viewport is designed to take whole browser window so the same applies: background is determined by components inside the viewport. Post please some pictures of what you really get and what you want to get.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  7. #7
    Ext User
    Join Date
    Feb 2009
    Location
    Egypt
    Posts
    14
    Vote Rating
    0
    mrmalaa is on a distinguished road

      0  

    Default


    Ok what I mean:

    Let we have a browser window with a textfiled and one button when I press on this button a pop up window come to the screen.

    I want when this window appear, no one can change the contents of textfiled.

    We can say as alert when it appear no one can change the textfiled.

    I want the same functionality as alert but by using window.

    I hope it will be clear enough.

    Thanks in advance.

  8. #8
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,506
    Vote Rating
    373
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Try to set modal:true in Window config.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  9. #9
    Ext User
    Join Date
    Feb 2009
    Location
    Egypt
    Posts
    14
    Vote Rating
    0
    mrmalaa is on a distinguished road

      0  

    Default


    Thanks for you it work correctly.

Thread Participants: 1