Not finding what you are looking for? Request a recipe!
Adding a static icon to the header of Spark DataGrid can be done very easily by creating a custom headerRenderer and specifying it for your GridColumn.
I create a custom itemRenderer that creates a new gray Rect as the background. In each of my GridColumns, I'm using itemRenderFunction to decide if I use the custom gray itemRenderer or the default renderer.
Use a custom itemRenderer where you override the updateDisplayList function: ListBase(owner).isItemSelected(data); The full explanation is below.
In this example, I've created a custom component that subclasses LinkBar so that the buttons are not toggled when the dataProvider of the LinkBar is a ViewStack. This solution was provided by Sasha Magee and I am just a messenger.
You need to make sure that the modal dialog is re-enabled before the Alert dismisses itself. Otherwise, once the Alert gets dismissed, the Application will look at the dialog, see that it is not enabled and will return focus to the parent Application.
In the following example, I've created a simple DataGrid with two columns of X and Y values. If any of the values exceeds 100, the cell background will be red. I will use the same itemRenderer for both columns since the two columns behave the same.
I've found that if you want to change some small functionality of the Tree, it is easiest to create an itemRenderer that extends the TreeItemRenderer class.
Create a custom DataGrid skin and add a stroke to the selectionIndicator.