Which brings me back to the question of why not help improving ext4j
instead of having tons of micro solutions ?
On 17 Mar 2016 14:50, "Brandon Donnelson" <[email protected]> wrote:
> ateletin, I've been working using jsinterop with extjs 6+, if you have
> some questions ping me and I can help with that. There are two ways to
> configure it, first is using ext.define. The other is using the ext class
> and instantiate it with a config object. Ext.define is far more documented
> than instantiating the classes, so it's easier. I've got a generator for
> generating all the class types, but it's not finished yet.
>
> Thanks,
> Brandon
>
> On Thursday, March 17, 2016 at 1:44:47 AM UTC-7, ateletin wrote:
>>
>> Maybe I wasn't clear enough. What I want to do is to wrap the following
>> javascript into a java object like.
>>
>> Ext.define('com.acme.client.Person', {
>> firstName : 'Kimi',
>> lastName : 'Raikkonen',
>>
>> fullName : function() {
>> return firstName + " " + lastName;
>> }
>> });
>>
>> into
>>
>> package com.acme.client;
>> @JsType(isNative = true)
>> public class Person {
>> public String firstName;
>> public String lastName;
>>
>> public native String fullName();
>> }
>>
>> So by calling java fullName() to return the result of javascript
>> fullName(),
>> or when I call java firstName to return "Kimi".
>> Can ExtJs Wrapper API help me with this? If so, can you give me a
>> direction?
>> And yes, we don't plan to wrap the ExtJs library.
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://google-web-toolkit.2317884.n4.nabble.com/JsInterop-and-Sencha-Ext-js-framework-tp15385p15403.html
>> Sent from the Google Web Toolkit mailing list archive at Nabble.com.
>>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.