widgets
#24
Replies: 1 comment
-
Take a closer look at error, theres a type mismatch. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
i was implementing the widget view tab palette here is the code. this code has no error but the App.tsx file showing out error.
import React from 'react';
import { UiItemsProvider, StagePanelLocation, StagePanelSection, AbstractWidgetProps, WidgetState} from "@itwin/appui-abstract";
export class ViewDashboardPaletteWidget implements UiItemsProvider {
public readonly id: string = "ViewDashboardPaletteWidget";
public provideWidgets(_stageId: string, _stageUsage: string, location: StagePanelLocation, _section?: StagePanelSection): ReadonlyArray {
const widgets: AbstractWidgetProps[] = [];
}
}
// Example usage:
const dashboardPaletteWidget: UiItemsProvider = new ViewDashboardPaletteWidget();
export default dashboardPaletteWidget;
this is where i want to add my tab.
Even i have used this code but it is not working:
import React from 'react';
import { UiItemsProvider, StagePanelLocation, StagePanelSection, Widget } from "@itwin/appui-abstract";
export class ViewDashboardPaletteWidget implements UiItemsProvider {
public readonly id: string = "ViewDashboardPaletteWidget";
public provideWidgets(stageId: string, stageUsage: string, location: StagePanelLocation, section?: StagePanelSection): ReadonlyArray {
const widgets: Widget[] = [];
}
}
// Example usage:
const dashboardPaletteWidget: UiItemsProvider = new ViewDashboardPaletteWidget();
export default dashboardPaletteWidget;
If someone has the solution to this please put the code below
Beta Was this translation helpful? Give feedback.
All reactions