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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:34:49+00:00 2026-05-27T16:34:49+00:00

I have a list component which is filled out using a data store(data loaded

  • 0

I have a list component which is filled out using a data store(data loaded from server as json). A part of data from data store is displayed as list items, and i need some kind of a “+” button to the left of it to expand a list item(and “-” to collapse) to reveal(/hide) the remaining info. I could simply put some javascript to itemTpl tag but i’ve no idea how to make smooth transitions this way. Maybe am missing some standard settings for a list component, but i can’t find any info. Any help appreciated.

  • 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-27T16:34:50+00:00Added an answer on May 27, 2026 at 4:34 pm

    There is no standard settings to do this functionality. But this is possible to achieve. You can have your item template as something like this:

    itemTpl: '<div class="plus"></div><div class="title">{title}</div><div class="hidden">{mydetails}</div>'
    

    Initially, the details is hidden. You need to handle the animation when your taps the list item. So, in your event you will have to do:

    itemtap: function(view,index,htmlElement,e,opts) {
    
        // change the div plus to minu..
        // Get hold of the div with details class and animate
        var el = htmlElement.select('div[class=hidden]');
    
        el.toggleCls('hidden'); //remove the hidden class if available..
        el.show(true); // show with animation
    

    }

    The object is obtained from select() method is Ext.dom.CompositeElementLite .. Refer this class for more methods. You can call the Ext.Anim from this object as well..

    To animate you can use the Ext.Anim class. Once you have the html element of you ‘details’ div, you can:

    Ext.Anim.run(detailsDiv,'slide',{
        out:false,
        from: 'hiddenCSS',
        to: 'visibleCSS'
    });
    

    Refer to Anim class for more setting that might be needed to have your desired effect. Also note that you will have to track the previously clicked (expanded) list items.

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

Sidebar

Related Questions

I have a page-scoped component, which has an instance variable List with data, which
I have a component which has a List<T> property. The class in the list
Hi, i have been having some problems using JSON data in flash builder lately
I have list of rows displayed on the screen. These rows are iterated using
I have a component registered with Castle Windsor which depends on a list of
I have a spark.components.List component on which I would like the vertival scroll to
I have a list component on the stage in an AS3 movie. I populate
I have a s:List component. I want to handle a click event to know
I have set the itemRollOver and itemRollOut event listeners on a List component, but
I have a custom component, that contains a list of another components. If I

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.