14 lines
400 B
TypeScript
14 lines
400 B
TypeScript
import { ButtonConfig } from '../../../index.type';
|
|
import { infoIcon } from './icon';
|
|
|
|
export const infoButton: ButtonConfig = {
|
|
id: 'toolbar-info',
|
|
type: 'button',
|
|
label: 'toolbar.info',
|
|
icon: infoIcon,
|
|
onClick: () => {
|
|
// WORKAROUND: Dispatch a standard custom event on document
|
|
document.dispatchEvent(new CustomEvent('bim-demo:open-property-panel'));
|
|
}
|
|
};
|