Skip to content

Commit

Permalink
Make create button public again as it was used by some
Browse files Browse the repository at this point in the history
  • Loading branch information
volkanceylan committed Oct 16, 2024
1 parent 6182466 commit 726cafb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/corelib/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3346,7 +3346,7 @@ export declare class Toolbar<P extends ToolbarOptions = ToolbarOptions> extends
protected renderContents(): any;
destroy(): void;
protected mouseTrap: any;
private createButton;
createButton(container: ParentNode, tb: ToolButton): HTMLElement;
findButton(className: string): Fluent<HTMLElement>;
updateInterface(): void;
}
Expand Down
3 changes: 2 additions & 1 deletion packages/corelib/src/ui/widgets/toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class Toolbar<P extends ToolbarOptions = ToolbarOptions> extends Widget<P

declare protected mouseTrap: any;

private createButton(container: ParentNode, tb: ToolButton) {
createButton(container: ParentNode, tb: ToolButton): HTMLElement {

if (tb.separator === 'right' || tb.separator === 'both') {
container.appendChild(<div class="separator" />);
Expand All @@ -130,6 +130,7 @@ export class Toolbar<P extends ToolbarOptions = ToolbarOptions> extends Widget<P
return tb.hotkeyAllowDefault;
});
}
return button;
}

findButton(className: string) {
Expand Down

0 comments on commit 726cafb

Please sign in to comment.