Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get toggle working properly #209

Open
cetk opened this issue May 16, 2019 · 4 comments
Open

Can't get toggle working properly #209

cetk opened this issue May 16, 2019 · 4 comments

Comments

@cetk
Copy link

cetk commented May 16, 2019

I have bootstrap 3.3.7 installed and trying to use simple button toggle. I have tried the way

but it shows as regular checkbox and not toggle one. Am I missing something ?
@djibe
Copy link

djibe commented May 16, 2019

Hi, please send your HTML code so we can help you fix this.

@cetk
Copy link
Author

cetk commented May 16, 2019

One way

       <input type="checkbox" data-toggle="toggle" data-on="Generate" data-off="Do Not 
       Generate">

Other way

        <div class="btn-group btn-group-toggle" data-toggle="buttons">
         <button ng-class="{'btn btn-light': claim.PartnerClaimDecision, 'btn btn-primary active': 
          !claim.PartnerClaimDecision}"data-toggle="toggle" aria-pressed="false" 
          autocomplete="off" ng-click={claim.PartnerClaimDecision !=                        
           claim.PartnerClaimDecision}>Do Not Generate</button><label> </label>
           <button ng-class="{'btn btn-light': !claim.PartnerClaimDecision, 'btn btn-primary 
                         active': claim.PartnerClaimDecision}" data-toggle="toggle" aria-pressed="true" 
                         autocomplete="off">Generate</button></div>

@TheBearF8
Copy link

Did you manage to find a solution?
I'm having the same issue. It appears once or twice but mainly just looks like a standard checkbox, not a toggle

@danielschristian
Copy link

@cetk Please post your entire HTML, could be an issue with how you're importing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants