Re: How to prepend?
That's not necessary.
Suppose you want to insert an newWidget before the element "widget1".
All you have to do is:
widget1.getParent().getElement().insertBefore(newWidget,
widget1.getElement());
On 12/14/2009 06:14 PM, Dennis Madsen wrote:
> I new to GWT - that's why! :)
> Could you like me to a tutorial/sample about these custom widgets?
>
> On 14 Dec., 18:06, Arthur Kalmenson<arthur.k...@gmail.com> wrote:
>
>> Oh, why not just create a custom widget to display entries by date?
>>
>> --
>> Arthur Kalmenson
>>
>>
>>
>> On Mon, Dec 14, 2009 at 12:04 PM, Dennis Madsen<den...@demaweb.dk> wrote:
>>
>>> I'm doing some kind of guestbook which automatic async receive new
>>> guestbook entries. As the newest entry has to be on the top, is why I
>>> would like to prepend instead of adding/append.
>>> Since I'm receiving a lot of entries, it is not a solution to manually
>>> create a div in the markup for each of them.
>>>
>>
>>> Hope you understand!
>>>
>>
>>> On 14 Dec., 17:55, Arthur Kalmenson<arthur.k...@gmail.com> wrote:
>>>
>>>> You could just add another div before the entries and add to that div.
>>>>
>>
>>>> --
>>>> Arthur Kalmenson
>>>>
>>
>>>> On Mon, Dec 14, 2009 at 11:38 AM, Dennis Madsen<den...@demaweb.dk> wrote:
>>>>
>>>>> I'm adding a label into a div on my HTML:
>>>>> RootPanel.get("entries").add(myLabel);
>>>>>
>>
>>>>> But what if I would like to prepend the label instead of adding it?
>>>>> How can I do so?
>>>>>
>>
>>>>> --
>>>>>
>>
>>>>> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
>>>>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>>>>> To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
>>>>> For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en.
>>>>>
>>
>>> --
>>>
>>
>>> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>>> To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
>>> For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en.
>>>
> --
>
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home