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
5 changes: 5 additions & 0 deletions src/extensible-areas/actions-bar-item/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export class ActionsBarButton extends ActionsBarItem {

onClick: () => void;

color: string;

/**
* Returns object to be used in the setter for action bar. In this case,
* a button.
Expand All @@ -56,11 +58,13 @@ export class ActionsBarButton extends ActionsBarItem {
* @param dataTest - string attribute to be used for testing
* @param onClick - function to be called when clicking the button
* @param position - position that this button will be displayed, see {@link ActionsBarPosition}
* @param color - button color variant, defaults to 'primary'
*
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5)
*/
constructor({
id, icon, tooltip = '', dataTest = '', onClick = () => {}, position = ActionsBarPosition.RIGHT,
color = 'primary',
}: ActionsBarButtonProps) {
super({
id, type: ActionsBarItemType.BUTTON, position, dataTest,
Expand All @@ -69,6 +73,7 @@ export class ActionsBarButton extends ActionsBarItem {
this.tooltip = tooltip;
this.dataTest = dataTest;
this.onClick = onClick;
this.color = color;
}
}

Expand Down
1 change: 1 addition & 0 deletions src/extensible-areas/actions-bar-item/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export interface ActionsBarButtonProps {
position: ActionsBarPosition;
dataTest?: string;
onClick: () => void;
color?: string;
}

export interface ActionsBarSeparatorProps {
Expand Down
Loading