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 8166165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:46:04+00:00 2026-06-06T19:46:04+00:00

is it actually possible to addAfter or insertAfter for components? The documentation goes on

  • 0

is it actually possible to addAfter or insertAfter for components?

The documentation goes on about .add() to throw something to the end of a container but I’m looping through field’s in my form and displaying their errors after each one. So I need to add a new component after these.

It seems that it’s only possible on the actual element of these components? something like:

errorElement = Ext.create('Ext.Container', {
    //stuff
});
errorElement.element.insertAfter(field.element);

This is fine, it looks fine but if I do the following, the component doesn’t seem to exist where the Dom stuff is:

Ext.Viewport.getActiveItem().query('panel'); // []
Ext.ComponentQuery.query('panel'); // Ext.apply.create.Class

Please don’t tell me that I’m the only person who is asking about this sort of thing, how is this not highlighted anywhere in the documentation?

  • 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-06-06T19:46:06+00:00Added an answer on June 6, 2026 at 7:46 pm

    You can use Container.insert() method that Inserts a Component into this Container at a specified index.

    However inserting an error Component (Component? not Element?) doesn’t sound like a good idea. Default form fields already have an element for displaying errors inside them, and you can tweak its appearance through CSS.

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

Sidebar

Related Questions

I don't know if it's actually possible to do, but I have a text
I don't know if this is actually possible, but can I take complete control
I'm not sure if this is actually possible, but can I change default type
Greetings, I've read some threads about this topic, but actually I was unable to
Is that actually possible? I found it in wikipedia under inneficient sorts, but I
is it actually possible to find out via intent (or something else) if the
Is it actually possible to pass any data between managed components in JSF? If
I don't think this is actually possible, but is there any clean and tidy
First, I don't know if this is actually possible but what I want to
I'm wondering if it's actually possible to draw a polygon over a complete town

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.