SUTabPanel - enhancement

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

SUTabPanel - enhancement

Sophie424
It would be useful if SUTabPanel allowed for:
  - tab name to be dynamic (e.g. name of some object) or a string
    TabPanel>>
        add: aComponent label: aString
        add: aComponent labelFrom: anAccessor on: anObject
  - tabs to be removed
        remove: aComponent (removes all tabs on that component)

Thoughts?
Sophie

(probably applies to SUNavigation)



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

Re: SUTabPanel - enhancement

Sophie424
"itsme213" <[hidden email]> wrote
>  - tabs to be removed
>        remove: aComponent (removes all tabs on that component)

Sorry, that should be:
        remove: aTab  (just remove/close that one tab)



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

Re: SUTabPanel - enhancement

Lukas Renggli
In reply to this post by Sophie424
>   - tab name to be dynamic (e.g. name of some object) or a string

How would it know when the label has changed?

>   - tabs to be removed
>         remove: aComponent (removes all tabs on that component)

That seems to be useful, yes. Even with the possiblity to let users
manually close some of the tabs.

Cheers,
Lukas

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

Re: SUTabPanel - enhancement

Sophie424
"Lukas Renggli" <[hidden email]> wrote in message
>>   - tab name to be dynamic (e.g. name of some object) or a string
>
> How would it know when the label has changed?

The tab-panel itself is re-displayed via different means e.g.
  a session var that leads to a top-level tabPanel
  + announcements or hard-coded callbacks
The tab-panel may need an ID for this.

(Learned most of this from you; dumb errors are my own :-)

>>   - tabs to be removed
>>         remove: aComponent (removes all tabs on that component)
>
> That seems to be useful, yes. Even with the possiblity to let users
> manually close some of the tabs.

    #beUserClosable :-)
    #beUserSortable

Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside