0

I want to disable the mouse highlighting of rows of a celltable. This celltable is not a selectionmodel so I dont want the rows to get highlighted while mouse over event.

  • possible duplicate of [How do you change the mouse over highlighting?](http://stackoverflow.com/questions/5993918/how-do-you-change-the-mouse-over-highlighting) – Michael Laffargue Feb 12 '14 at 10:46

1 Answers1

0

We are basically extending the CellTable Resources which contain the CssStyles of the CellTable so that we can custom define our own css styles. for more css classes check this link

public interface IMyResources extends CellTable.Resources {

    interface IMyStyle extends CellTable.Style {
    }

    @Override
    @Source({ CellTable.Style.DEFAULT_CSS, "MyStyleSheet.css" })
    IMyStyle cellTableStyle();

}

MyStyleSheet.css CSS :

.hoveredRow {
  background-color: none; //or just remove this but keep the class declaration
}

JAVA //dont forget add the resource.

CellTable<dataType> myCellTable = new CellTable<dataType>(15, GWT.create(IMYResources.class));
Onkar
  • 652
  • 3
  • 15