Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
</td>
<td>Uses on of the available button modes.</td>
</tr>
<tr>
<td>type: 'button' | 'reset' | 'submit'</td>
<td>
<code>'button'</code>
</td>
<td>This prop corresponds to the 'type' prop of the button in html.</td>
</tr>
<tr>
<td>label: string</td>
<td></td>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<button class="dxcButton" disableRipple mat-button [disabled]="disabled" (click)="onClickHandler($event)"
[tabindex]="disabled ? -1 : tabIndexValue">
<button
class="dxcButton"
[type]="type"
disableRipple
mat-button
[disabled]="disabled"
(click)="onClickHandler($event)"
[tabindex]="disabled ? -1 : tabIndexValue"
>
<img src="{{ iconSrc }}" *ngIf="iconSrc" />
<ng-content select="dxc-button-icon"></ng-content>
<span *ngIf="label">{{ label }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ export class DxcButtonComponent {
* Size of the component.
*/
@Input() size: Size = "fitContent";
/**
* This prop corresponds to the 'type' prop of the button in html.
*/
@Input() type: "reset" | "submit" | "button" = "button";
/**
* Value of the tabindex attribute.
*/
Expand Down