My solution: I copied the com.google.gwt.cell.client.ActionCell into my app and modified it by adding an alternative htmlDisabled member and a boolean enabled member with get/is methods. In render() I sb.append() html or htmlDisabled based on the value of enabled.
-- I also added a class to the <button> in my ActionCell so I could set a style in my CSS. I copied in the style for gwt-Button and tweaked it.
On Wednesday, April 2, 2014 12:12:58 PM UTC-4, Thad Humphries wrote:
On Wednesday, April 2, 2014 12:12:58 PM UTC-4, Thad Humphries wrote:
I have two ActionCells inside a CompositeCell. These cells appear as two button that, because of the intentional narrowness of their Column, appear stacked within their Column of a DataGrid. Excellent.
Depending on circumstances--say, product licensing or user permissions--I want the second action button in each row to be disabled. The other button is to stay enabled, so I don't want to disable the entire column. Is this possible?
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment