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

(click) function not showing up in button table #50

Open
francisalfanta opened this issue Sep 11, 2020 · 0 comments
Open

(click) function not showing up in button table #50

francisalfanta opened this issue Sep 11, 2020 · 0 comments

Comments

@francisalfanta
Copy link

francisalfanta commented Sep 11, 2020

Expected behavior

from your example you have advance table with the following column for button

<td class="mdl-data-table__cell--non-numeric">
       <button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect button--colored-teal">Add to
              cart
       </button>
 </td>

I added my (click)="createTrx" in

<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect button--colored-teal" (click)="createTrx">Add to
              cart
</button>

Actual behavior

But you have output html like this

<td _ngcontent-ldk-c105="" class="mdl-data-table__cell--non-numeric">
  <button _ngcontent-ldk-c105="" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect button--colored-teal" data-upgraded=",MaterialButton,MaterialRipple">Add to cart 
  <span class="mdl-button__ripple-container"><span class="mdl-ripple"></span></span>
</button>
</td>

Steps to reproduce the behavior

Relevant code


Environment description

How can I add my click function?

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

1 participant