Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4540228
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:03:26+00:00 2026-05-21T15:03:26+00:00

I want to create a panel with rounded edges. I have images for round

  • 0

I want to create a panel with rounded edges. I have images for round edges mainly top left, top right, bottom left, bottom right. I also have a center image which I can spread across the panel using CSS background-repeat property. I could not find any straight forward way to do this so I chose to extend the Ext.Panel class and create my own with just the look-n-feel change. The approach I chose was to create a table with 3 rows and 3 columns. 1st row will contain place holders for top left, top and top right images, 2nd row will contain center area where all the children of this panel will get added and 3rd row will contain place holders for bottom left, bottom and bottom right images. Below is the code for my Panel.

Ext.namespace("Ext.nDisks");
Ext.nDisks.RoundedPanel = Ext.extend(Ext.Panel, {
       // Rounded Panel code.
       autoEl: {
           tag: 'table', cls: 'rounded-panel-table',
               children: [
                   {tag:'tr', id:'row0', children:[
                           {tag: 'td', id:'col00', cls:'ptl'},
                           {tag: 'td', id:'col01',cls:'pt'},
                           {tag: 'td', id:'col02',cls:'ptr'}
                   ]},
                   {tag:'tr', id:'row1', children:[
                           {tag: 'td', id:'col10', cls:'center', colspan:'3'}
                   ]},
                   {tag:'tr', id:'row2', children:[
                           {tag: 'td', id:'col20', cls:'pbl'},
                           {tag: 'td', id:'col21', cls:'pb'},
                           {tag: 'td', id:'col22', cls:'pbr'}
                   ]}
               ]},
       constructor: function(config) {
           Ext.nDisks.RoundedPanel.superclass.constructor.call(this, config);
       }
   }
);

I have couple of problems with this implementation.

  1. When I instantiate this class like var roundedPanel = new Ext.myns.RoundedPanel(); it creates a table element assigning it the generated id(which is what it should do) but within the table, it creates a div element along with tbody. How do I get rid of this unnecessary div element.
  2. When I add any component to RoundedPanel it does not add to the table, but gets added to the generated div element. How do I get new element added to the 2nd row of the table which is the main container area.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T15:03:26+00:00Added an answer on May 21, 2026 at 3:03 pm

    Figured out the way to do it. In the config of Ext.Panel, enable the flag frame. This inserts a table in dom which has its on CSS. Now override the CSS for top left, top right etc with custom images to get a custom rounded edged panel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want create image animation , i have 50 images with png format now
I have created a website and I want to create a control panel for
I have to create an administrator control panel and I want to create a
I want to create a new Menu in the admin panel of Wordpress for
I want to create a table representing data I have, but I want each
I want to create settings panel for application. The application will store the settings
I want to create something like this: Main panel has its margins (x), and
I want to create an E-commerce website. So it will have 2 sides. Front
I want to create an NSPopUpButton with a custom active image. I have two
I want to create a panel (or any other component) inside a component that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.