• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

List customization

Contributor ,
Apr 03, 2012 Apr 03, 2012

Copy link to clipboard

Copied

Hello,

I am creating simple bullet application where I want to start bullets from left edge of controller and Increase the gap between text and bullet. Is it possible in current version of TLF?

Please help.

Thanks,

Vikram

TOPICS
Text layout framework

Views

2.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Apr 04, 2012 Apr 04, 2012

Copy link to clipboard

Copied

LATEST

Pasted a code scrap. Hope it will be helpful

....

 

                              var list:ListElement = new ListElement()

                              list.listStyleType = "decimal";

                              list.listStylePosition = "inside";

                              list.paddingLeft = "0";

 

                              var listMarkerFormat:ListMarkerFormat = new ListMarkerFormat();

                              var tabStops:Array = new Array();

                              var tabstop:TabStopFormat = new TabStopFormat();

                              tabstop.position = 50;

                              var tabstop2:TabStopFormat = new TabStopFormat();

                              tabstop2.position = 80;

                              tabStops.push(tabstop);

                              tabStops.push(tabstop2);

                              listMarkerFormat.tabStops = tabStops;

                              listMarkerFormat.beforeContent = "- ";

                              listMarkerFormat.afterContent = String.fromCharCode(0x9);

 

                              var item:ListItemElement;

                              item = new ListItemElement();

                              item.listMarkerFormat = listMarkerFormat;

                              var paragraphElement:ParagraphElement = new ParagraphElement();

                              var spanElement:SpanElement = new SpanElement();

                              spanElement.text = "Text starts here";

                              paragraphElement.addChild(spanElement);

                              item.addChild(paragraphElement);

                              list.addChild(item);

                              textFlow.addChild(list);

 

                              textFlow.flowComposer.updateAllControllers();

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines