Friday, April 22, 2016

[GTW 2.8] How to use JSON-like data with JSInterop

Hi all,
How do I construct input for the following jQuery call:

$('.ui.form') .form({ fields: { name : 'empty', gender : 'empty', username : 'empty', password : ['minLength[6]', 'empty'], skills : ['minCount[2]', 'empty'], terms : 'checked' } }) ;


My current plan is to use JsonUtils/JavaScriptObject in some fashion. Or resort to JSNI.

Any better option with JsInterop ?

--
You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment