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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:03:08+00:00 2026-06-04T06:03:08+00:00

I am creating an ItemRenderer for a list component in a Flex application. In

  • 0

I am creating an ItemRenderer for a list component in a Flex application. In my item renderer I have a StyleableTextField which contains a short description of the current item in the list. If this comment gets to long (as it probably will) I would like to truncate it with a ... on the end.

It it possible to do that with the StyleableTextField? Also, if the device is rotated, I would like the truncation to change to new width. Is that also possible?

I suppose the second would be possible if the first is possible. All I have to do is listen for a StageOrientationEvent.ORIENTATION_CHANGING event.

Thank you for your time.

  • 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-04T06:03:09+00:00Added an answer on June 4, 2026 at 6:03 am

    StyleableTextField has a public method

    truncateToFit(truncationIndicator:String = "..."):Boolean
    

    that truncates the text to make it fit horizontally, and appends an ellipsis (…) to the text.

    Another option is to use LabelItemRenderer which truncates its text automatically (via build-in StyleableTextField) and adds ellipsis marks. You can use LabelItemRender as is or extend it to implement your custom LabelItemRenderer.

    Some more reading on how to extend LabelItemRenderer:

    • LabelItemRenderer Multiline text support.
    • Extending LabelItemRenderer to look like iTunes on the iPad
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone had success creating a custom list component which accepts a user defined
My application has a tree with a custom item renderer, which depending on the
I have made a program in Flex for creating simple schedules, similar to MS
I need to create a menu component in which each menu item looks like
Hi guys im creating/adding elemnts in my item renderer but from some reason you
I'm making a LIST container with my own item renderer to display xml file.
While creating a simple client for a REST service which I have stubbed out,
I'm creating a list of scores for a game. now most of the list
Creating an installer for possible remote systems so that if they do not have
I have the below function creating new panels inside my ViewStack.. This works fine

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.