Hi,
When you remove the last item in a panel bar it seems to remove the container as well (if it is a UL). Additionally I notice that you only seem to be able to add an item if you provide an existing item to a insert before/insert after/append to.
The only way around this seems to be to provide a datasource to construct the panel bar from (essentially allowing initialisation of an empty DOM node). However, how do I then change the items completely (eg. remove all of the items and add others? Do I need to destroy and replace the container to do this?
Also, if the container is a DIV and not a UL, you get a DIV with LI subitems in it, which seems to display fine, but which is probably not correct. Perhaps this should be checked on initialisation of the control and a wrapper constructed/initialisation aborted??
These issues also seem to affect the Menu control as well.
Regards,
Cuinn.
When you remove the last item in a panel bar it seems to remove the container as well (if it is a UL). Additionally I notice that you only seem to be able to add an item if you provide an existing item to a insert before/insert after/append to.
The only way around this seems to be to provide a datasource to construct the panel bar from (essentially allowing initialisation of an empty DOM node). However, how do I then change the items completely (eg. remove all of the items and add others? Do I need to destroy and replace the container to do this?
Also, if the container is a DIV and not a UL, you get a DIV with LI subitems in it, which seems to display fine, but which is probably not correct. Perhaps this should be checked on initialisation of the control and a wrapper constructed/initialisation aborted??
These issues also seem to affect the Menu control as well.
Regards,
Cuinn.