2025-12-22 15:39:58 +08:00
|
|
|
import { ButtonConfig } from '../../../index.type';
|
|
|
|
|
import { infoIcon } from './icon';
|
2025-12-03 15:46:18 +08:00
|
|
|
|
|
|
|
|
export const infoButton: ButtonConfig = {
|
2025-12-22 15:39:58 +08:00
|
|
|
id: 'toolbar-info',
|
2025-12-03 15:46:18 +08:00
|
|
|
type: 'button',
|
2025-12-04 15:24:44 +08:00
|
|
|
label: 'toolbar.info',
|
2025-12-22 15:39:58 +08:00
|
|
|
icon: infoIcon,
|
|
|
|
|
onClick: () => {
|
|
|
|
|
// WORKAROUND: Dispatch a standard custom event on document
|
|
|
|
|
document.dispatchEvent(new CustomEvent('bim-demo:open-property-panel'));
|
2025-12-03 15:46:18 +08:00
|
|
|
}
|
|
|
|
|
};
|