Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const contentLayoutDef: ContentLayoutDef = new ContentLayoutDef(contentLayoutProps);
// create the content props that specifies an iModelConnection and a viewState entry in the application data.
const contentProps: ContentProps[] = [];
for (const viewState of this.viewStates) {
const thisContentProps: ContentProps = {
classId: IModelViewportControl,
applicationData: { viewState, iModelConnection: this.iModelConnection },
};
contentProps.push(thisContentProps);
}
const myContentGroup: ContentGroup = new ContentGroup({ contents: contentProps });
return (
} />,
]}
/>
}
topCenter={
public get frontstage(): React.ReactElement {
const contentGroup: ContentGroup = new ContentGroup({
contents: [
{
classId: LocalFileOpenControl,
},
],
});
return (
} />,
]}
/>
}
/>
);
}
}
public get frontstage(): React.ReactElement {
const myContentGroup: ContentGroup = new ContentGroup(
{
contents: [
{
classId: "ScheduleAnimationControl",
},
],
},
);
return (
} />,
]}
/>
}
/>
);
}
}
},
{
classId: "TestApp.IModelViewport",
applicationData: { label: "Content 3a", bgColor: "black" },
},
{
classId: HorizontalPropertyGridContentControl,
applicationData: { label: "Content 4a", bgColor: "black" },
},
],
},
);
return (
} />,
]}
/>
}
topCenter={
,
]}
/>
/>
}
/>
);
}
}
/** Define a ToolWidget with Buttons to display in the TopLeft zone.
*/
class FrontstageToolWidget extends React.Component {
private _horizontalToolbar =
}
/>;
private _verticalToolbar =
public get frontstage(): React.ReactElement {
const myContentGroup: ContentGroup = new ContentGroup(
{
contents: [
{
classId: "ScheduleAnimationControl",
},
],
},
);
return (
);
}
}
{
classId: App_IModelViewport.id,
applicationData: { label: "Content 2a", bgColor: "blue" },
},
{
classId: "TableExampleContent",
applicationData: { label: "Content 3a", bgColor: "black" },
},
],
},
);
return (
,
]}
/>
}
topCenter={
,
]}
},
{
key: "d",
labelKey: "SampleApp:buttons.shortcutsSubMenu",
shortcuts: [
{
key: "1",
item: AppTools.tool1,
},
{
key: "2",
item: AppTools.tool2,
},
{
key: "s",
item: CoreTools.selectElementCommand,
},
],
},
{
key: "f",
item: AppTools.setLengthFormatImperialCommand,
},
{
key: "m",
labelKey: "SampleApp:buttons.accudrawSubMenu",
shortcuts: [
{
key: "a",
item: AccuDrawPopupTools.addMenuButton,
},
{
if (activeFrontstageDef) {
const contentLayout = ContentLayoutManager.findLayout("TwoHalvesHorizontal");
if (contentLayout && activeFrontstageDef.contentGroup) {
await ContentLayoutManager.setActiveLayout(contentLayout, activeFrontstageDef.contentGroup);
}
}
},
});
}
private _horizontalToolbar =
}
/>;
private _verticalToolbar =
public get frontstage(): React.ReactElement {
const contentGroup: ContentGroup = new ContentGroup({
contents: [
{
classId: IModelIndexControl,
},
],
});
return (
);
}
}