You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/ngx-mat-split-button/README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,8 @@ The `ngx-mat-split-button` component has the following inputs to customize its a
37
37
| --- | --- | --- |
38
38
|`color`|`'primary' \| 'accent' \| 'warn' \| undefined`| (Optional; default `undefined`) The color of the primary action button. (Material 2 themes only.) |
39
39
|`buttonStyle`|`'raised' \| 'stroked' \| 'flat' \| 'basic'`| (Optional; default `'basic'`) The style of the primary action button. These map to the equivalent [Angular Material Button directives](https://material.angular.io/components/button/overview), with `raised` being slightly different in the DOM than the others due to needing a unified shadow. (`raised` style uses `mat-flat-button` internally with a `box-shadow`.) |
40
+
|`primaryDisabled`|`boolean`| (Optional; default `false`) Whether the primary action button should be disabled. |
41
+
|`menuTriggerDisabled`|`boolean`| (Optional; default `false`) Whether the dropdown menu trigger button should be disabled. |
40
42
41
43
## Events
42
44
@@ -45,5 +47,6 @@ The following output events are available to support interactivity:
45
47
| Output | Event/Argument Type | Description |
46
48
| --- | --- | --- |
47
49
|`primaryClick`|`MouseEvent`| Emitted when the primary action button is clicked. |
50
+
|`menuTriggerClick`|`MouseEvent`| Emitted when the dropdown menu trigger button is clicked. |
48
51
49
52
To handle clicks on the secondary action buttons, you can simply add `(click)="handler()"` to the buttons you provide inside the `ngx-mat-split-button` component.
0 commit comments