Git Product home page Git Product logo

Comments (4)

khang-nd avatar khang-nd commented on May 18, 2024 1

Hello @Vetagiri-Hrushikesh, This css package is not shipped with any JS, you indeed need to add your own JS code to make the tabs functional, or you can refer to the JS code used for the docs:

// Tabs

from 7.css.

JericoFX avatar JericoFX commented on May 18, 2024

Hi Khang,. sorry for reviving this, i have the same problem i even copy the js and doest work i have an image im using svelte, Keep doing this, is awesome!!!
image
Edit One : so after some touches the tabs "activate and deactivate" but the content still in like one line instead in the tabs

from 7.css.

khang-nd avatar khang-nd commented on May 18, 2024

Hello @JericoFX, maybe try setting up the tabs using the simplified tabs template could help you get started easier. Otherwise, please share your code.

from 7.css.

Vetagiri-Hrushikesh avatar Vetagiri-Hrushikesh commented on May 18, 2024

Hi Khang,. sorry for reviving this, i have the same problem i even copy the js and doest work i have an image im using svelte, Keep doing this, is awesome!!!
image
Edit One : so after some touches the tabs "activate and deactivate" but the content still in like one line instead in the tabs

I did added that functionality using bootstrap In case if you need that please check the code below. It looks almost similar but you need to do very minimal changes in your css according to your needs.

        <div>
            <ul class="nav nav-tabs tabs" role="tablist">
                <li class="nav-item" role="presentation">
                    <button data-bs-toggle="tab" data-bs-target="#home" type="button" role="tab" aria-controls="home"
                        aria-selected="true" (click)="pluginCall()">Software Revisions</button>
                </li>
                <li class="nav-item" role="presentation">
                    <button data-bs-toggle="tab" data-bs-target="#profile" type="button" role="tab"
                        aria-controls="profile" aria-selected="false">Discrete Outputs</button>
                </li>
                <li class="nav-item" role="presentation">
                    <button data-bs-toggle="tab" data-bs-target="#contact" type="button" role="tab"
                        aria-controls="contact" aria-selected="false">Discrete Inputs</button>
                </li>
            </ul>
            <div class="tab-content" id="myTabContent">
                <div style="height: 320px;" class="tab-pane fade show active" id="home" role="tabpanel"
                    aria-labelledby="home-tab">
                    <div class="Content">
                        <p *ngFor="let i of valueList">{{i}}</p>
                    </div>
                </div>
                <div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">Tab 2</div>
                <div class="tab-pane fade" id="contact" role="tabpanel" aria-labelledby="contact-tab">Tab 3</div>
            </div>
        </div>

from 7.css.

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.