
Originally Posted by
gkatz
1. can caching of views be disabled by config?
No, not currently. You can, however, manually delete items from the cache by removing them from the ``_cache`` object.

Originally Posted by
gkatz
2. how should I use this component to achieve the following approach:
every click on the list creates its view dynamically and destroys the last displayed one (for DOM performance)
I'd do this by listening to the ``select`` event. For example (this is totally untested):
Code:
slidenav.on({
select: function(slidenav, newItem, index) {
Ext.Object.each(slidenav.container._cache, function(idx, item) {
if (idx != index) {
delete slidenav.container._cache[idx];
if (Ext.isFunction(item.destroy)) {
item.destroy();
}
}
});
}
});

Originally Posted by
gkatz
3. how can I choose the view to be displayed when loading the component? I want item number 6 to be displayed with application startup instead of the first item. tried activeItem property but apparently its not the way
Again, currently there isn't an "easy" way to do this (it's been on the todo list for awhile). The best way currently would probably to make a subclass of the slide view and overload the initialize function, where you can then manually define ``this.list.select(6)``. Alternatively, you might be able to get away with listening to the ``select`` event on the slide view and checking for the _init boolean--if it is ``false``, then you can return ``false`` from the listener and select the desired item instead.
Hope that helps.