Change mouse cursor?

[My first post…:)]

Is there some way to change the mouse cursor over some specific element e.g. Table.setMouseCursor(MOUSE.HANDSHAPE) ? If not, is something on the way?

Define a custom style name for the table and define the cursor type in css.


myTable.setStyleName("table-with-different-cursor");

.table-with-different-cursor {
   cursor: default;
}

Forgot to say that if you define the style with setStyleName to “table-with-different-cursor” for a table, then the actual css name will be .i-table-table-with-different-cursor

That should propably be:


.i-table-table-with-different-cursor {
   cursor: default;
}

Ok, thanks! … but one more question.

I have not set any theme so I presume I have the default theme. Shouldn’t I then put my styles.css file in WebContent/ITMILL/default?

… or what else have I missed?

actually I should put it in WebContent/ITMILL/
themes
/default … which was my mistake :slight_smile: