문제

I would like to extend Glimpse but extend it from different aspects.

So for example if I have two actions:

/foo

and

/bar

I would like to show different custom tabs for /foo and for /bar. Programmatic way would be preferable over web.config. I was looking for a solution to tell this from the tab implementation based on the actual context but found nothing.

Is there any way to do this?

도움이 되었습니까?

해결책

Currently there is no way to have a different set of tabs depending on the request.

The tab itself can decide to not collect and return information, but the tab will still appear, only not clickable as there is no data.

You could create one Tab that shows the details of all the different tabs you want to show conditionally and have that one decide what data to show or hide depending on the context.

This is something that we would like to support as well, but up until now did not had the time to work that in. Feel free to create an issue on our issue tracker if this is something you would like to do.

다른 팁

Technically you could make this work currently using a client-side extension that would stop certain tabs from rendering at certain times.

Not the most elegant approach to be sure, but it would work.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top