On Tuesday, May 30, 2017 at 5:36:01 PM UTC+2, Magnus wrote:
>
> Hello,
>
> my understanding of the typical folders in a GWT project is this:
>
>- client
>only client-side code here
>- server
>only server-side code here
>- shared
>code that may be used on client-side and
I usually only call the shared code form the client (and not the other way
round).
You can have separate TimeFormatter:
one for client -->
com.google.gwt.i18n.client.*
and one for server or shared (if its used by other server side modules as
well) -->
java.time.* java.util.Date
If your
> my understanding of the typical folders in a GWT project is this:
>
>- client
>only client-side code here
>- server
>only server-side code here
>- shared
>code that may be used on client-side and server-side
>
> It is just a convention, you can generally use whatever
Hello,
my understanding of the typical folders in a GWT project is this:
- client
only client-side code here
- server
only server-side code here
- shared
code that may be used on client-side and server-side
I believe that the code in the client folder gets compiled by the GWT
DataGrid being a "cell widget", it will be "re-rendered" regularly, losing
all modifications you manually did to the DOM tree.
You can "persist" your changes using setRowStyles for classnames applied to
a TableRowElement, or custom column with overridden getCellStyleNames
I am trying to apply background colour to some rows dynamically based on
some program logic, but I can see that the colour is disspearing on any
further row selection.
I used two approaches to change the colour.
1) baseGrid.getRowElement(i).getCells().getItem(0).addClassName();
A cross-post from
here:
https://discuss.kotlinlang.org/t/interop-with-googles-j2cl-what-would-it-take/2991
Whoever is interested - please post. ... and correct/clarify if you notice
I've mentioned anything which is imprecise.
--
You received this message because you are subscribed to the