So it turns out I need to do this after hours of web surfing:

Navigator nav = DomGlobal.navigator;


hopefully, there will be more comprehensive help documents and examples 
coming out soon for elemental2


Joe




On Wednesday, December 6, 2017 at 9:26:43 PM UTC-5, Joe Wu wrote:
>
> Thanks for replying. I did have  
>
> <inherits name='elemental2.dom.Dom'/> included in the XXX.gwt.xml
>
>
> Joe 
>
> On Wednesday, December 6, 2017 at 8:36:18 PM UTC-5, Juan Pablo Gardella 
> wrote:
>>
>> Did you include elemental2.dom.Dom  module? Check at 
>> https://github.com/google/elemental2#gwt
>>
>> On Wed, 6 Dec 2017 at 19:34 Joe Wu <[email protected]> wrote:
>>
>>> I have been using GWT for a while but I am new to elemental2, I have 
>>> tried the following code to create new navigator object in GWT:
>>>
>>> import elemental2.dom.Navigator;
>>>
>>>
>>> and for entrypoint
>>>
>>>
>>> private Navigator Nav = new Navigator(); 
>>>
>>>
>>> the following are the first several lines of the error message I got 
>>> during compile:
>>>
>>>  
>>>
>>>             [ERROR] elemental2.dom.Navigator cannot be resolved to a 
>>> type
>>>
>>>          [ERROR] Errors in 'elemental2/dom/Navigator.java'
>>>
>>>             [ERROR] elemental2.dom.ServiceWorkerContainer cannot be 
>>> resolved to a type
>>>
>>>          [ERROR] Errors in 'elemental2/dom/BatteryManager.java'
>>>
>>>             [ERROR] elemental2.dom.EventTarget cannot be resolved to a 
>>> type
>>>
>>>
>>> can anyone help? 
>>>
>>>
>>> Thanks,
>>>
>>> Joe
>>>
>>>
>>>
>>> -- 
>>> 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.

Reply via email to