Code Monkey home page Code Monkey logo

Comments (3)

giterlizzi avatar giterlizzi commented on June 12, 2024 1

Hi @reissmann,
i have implemented in develop branch this feature. This is a sample page to test:

[[#tab-foo|Test Foo]] -- [[#tab-bar|Test Bar]]

----

<tabs>
  * [[#tab-foo|Foo]]
  * [[#tab-bar|Bar]]

<pane id="tab-foo">
=== Foo ===
Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</pane>

<pane id="tab-bar">
=== Bar ===
Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</pane>

</tabs>

from dokuwiki-plugin-bootswrapper.

reissmann avatar reissmann commented on June 12, 2024

Exactly what I needed. Thank you!

There is one minor issue. When you click on a link like the following, the correct tab is shown and location.hash is added to the url in the address bar.

[[#tab-foo|Foo]]

However, if you click on a tab, the URL stays the same, preventing the link from working a second time.

In your example:

  • Load the page
  • Click on the link [[#tab-bar|Test Bar]]
  • Click on the Foo-Tab
  • Click on the link again (will not work)

This is, however, a very uncommon usecase, as most of the time one will link from one page to another.

from dokuwiki-plugin-bootswrapper.

giterlizzi avatar giterlizzi commented on June 12, 2024

Hi, this is a normal behavior of Bootstrap to prevent a page scrolling when click on tab link.

from dokuwiki-plugin-bootswrapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.