blob: 6228bfc2341eb87aa3b34517dbadd2feb8522928 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" initialize="init(event)">
<s:layout>
<s:VerticalLayout />
</s:layout>
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.events.FlexEvent;
/*
* ISSUE: data tips show for all lines when showDataTips="true" and should only show up for long lines
*
* WORKAROUND: None that I'm aware of
*
* NOTE s:List doesn't support dataTips unlike mx:List
*/
[Bindable] public var strings:ArrayCollection = new ArrayCollection(["one","two","a long line for the number three","four","five","six","seven","eight","nine","ten"]);
[Bindable] public var objects:ArrayCollection = new ArrayCollection();
protected function init(event:FlexEvent):void {
for each (var label:String in strings) {
objects.addItem({label:label});
}
}
]]>
</fx:Script>
<s:DataGrid dataProvider="{objects}" showDataTips="true" />
</s:Application>