Seaside.WATree expand and element position

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Seaside.WATree expand and element position

dtrussardi@tiscali.it
Hi Lukas,
 
thanks for your indication.
 
I have add note in bold .
 
   
>  (component isKindOf: WATree)
>   ifTrue:
>    [html div
>     style: 'height: 200px; width: 200px;  overflow: scroll';
>     with: ( component renderTreeOn: html  )]
>   ifFalse: [html render: component].

    Remove "renderTreeOn: html", you should never all render methods of
   other components. And since this method returns the component, it is
    displayed twice.
 
    OK BUT WHAT DO I USE ?
               When use [ html render: component] i see normall view; not in div space with scroll bar.


> B) Second problem : tree position
>
>     Now then rendering one WATree it start  always to root of the tree ;
>             or to one specific node with lose of upper hierrarchy.
>
>     My question is :
>         is possibol display the WATree positioned on one specific node with
> upper and under hierarchy ?
>         or render WATree to the last position node select with upper an
> under hierarchy ?

Yes, but it is probably not simple and certainly involves changing the
implementation of WATree. You could do it using JavaScript, e.g. with
script.aculo.us and a scroll-to effect.
Where i found dettail information and example about this ?
 

Thanks & Regards,

 Dario Trussardi Romano


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside.WATree expand and element position

Lukas Renggli
> I have add note in bold .

It is very hard to read your HTML mails, could you please configure
your client to send plain text?

>     OK BUT WHAT DO I USE ?
>                When use [ html render: component] i see normall view; not in
> div space with scroll bar.

Something like that should work:

     html render: component.

Or with a styled div:

     html div style: 'blabla'; with: component

The thing is that you should never call render methods of other
components, just give the component to Seaside and let the framework
do the setup.

> Yes, but it is probably not simple and certainly involves changing the
> implementation of WATree. You could do it using JavaScript, e.g. with
> script.aculo.us and a scroll-to effect.
>
> Where i found dettail information and example about this ?

Scriptaculous package in the Seaside repository. Live demo at
<http://scriptaculous.seasidehosting.st>.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside