type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
(props: SetupDeleteConfirmationProps) => { const { handleCloseDeletePostConfirmation, handleDeletePost, currentUser, state: { isDeletingPost, postForDeletion } } = props; let deletePostConfirmationProps: DeletePostConfirmationProps | undefined; i...
NarrativeCompany/narrative
react-ui/packages/web/src/shared/containers/withDeletePostController.ts
TypeScript
InterfaceDeclaration
interface State { postForDeletion?: Post; isDeletingPost: boolean; }
NarrativeCompany/narrative
react-ui/packages/web/src/shared/containers/withDeletePostController.ts
TypeScript
InterfaceDeclaration
export interface WithOpenDeletePostConfirmationHandler { handleOpenDeletePostConfirmation?: (post: Post) => void; }
NarrativeCompany/narrative
react-ui/packages/web/src/shared/containers/withDeletePostController.ts
TypeScript
InterfaceDeclaration
interface WithCloseDeletePostConfirmationHandler { handleCloseDeletePostConfirmation: () => void; }
NarrativeCompany/narrative
react-ui/packages/web/src/shared/containers/withDeletePostController.ts
TypeScript
InterfaceDeclaration
interface WithDeletePostHandler { handleDeletePost: () => void; }
NarrativeCompany/narrative
react-ui/packages/web/src/shared/containers/withDeletePostController.ts
TypeScript
InterfaceDeclaration
export interface WithPostDeletedHandler { onPostDeleted: () => void; }
NarrativeCompany/narrative
react-ui/packages/web/src/shared/containers/withDeletePostController.ts
TypeScript
InterfaceDeclaration
export interface WithDeletePostControllerProps extends WithOpenDeletePostConfirmationHandler { deletePostConfirmationProps?: DeletePostConfirmationProps; }
NarrativeCompany/narrative
react-ui/packages/web/src/shared/containers/withDeletePostController.ts
TypeScript
TypeAliasDeclaration
type HandleDeletePostProps = WithDeletePostProps & WithStateProps<State> & InjectedIntlProps & WithPostDeletedHandler & WithCurrentUserProps;
NarrativeCompany/narrative
react-ui/packages/web/src/shared/containers/withDeletePostController.ts
TypeScript
TypeAliasDeclaration
type SetupDeleteConfirmationProps = WithStateProps<State> & WithCurrentUserProps & WithDeletePostHandler & WithCloseDeletePostConfirmationHandler;
NarrativeCompany/narrative
react-ui/packages/web/src/shared/containers/withDeletePostController.ts
TypeScript
ArrowFunction
(item: IToolbarItem, index: number) => { if (item.type === 'element') { return <Fragment key={index}>{item.element}</Fragment>; } else if (item.type === 'action') { return ( <ActionButton key={index} {...item.buttonProps} data-testid={item.dataTestid} disabled={item.disabled}> {item.text} ...
BruceHaley/BotFramework-Composer
Composer/packages/lib/ui-shared/src/components/Toolbar.tsx
TypeScript
ArrowFunction
(props: ToolbarProps) => { const { toolbarItems = [], ...rest } = props; const left: IToolbarItem[] = []; const right: IToolbarItem[] = []; for (const item of toolbarItems) { switch (item.align) { case 'left': left.push(item); break; case 'right': right.push(item); ...
BruceHaley/BotFramework-Composer
Composer/packages/lib/ui-shared/src/components/Toolbar.tsx
TypeScript
TypeAliasDeclaration
// -------------------- IToolbarItem -------------------- // export type IToolbarItem = { type: string; // eslint-disable-next-line @typescript-eslint/no-explicit-any element?: any; text?: string; buttonProps?: { iconProps?: IIconProps; onClick?: () => void; styles?: IButtonStyles; }; menuProp...
BruceHaley/BotFramework-Composer
Composer/packages/lib/ui-shared/src/components/Toolbar.tsx
TypeScript
TypeAliasDeclaration
type ToolbarProps = { toolbarItems?: Array<IToolbarItem>; };
BruceHaley/BotFramework-Composer
Composer/packages/lib/ui-shared/src/components/Toolbar.tsx
TypeScript
MethodDeclaration
formatMessage('toolbar')
BruceHaley/BotFramework-Composer
Composer/packages/lib/ui-shared/src/components/Toolbar.tsx
TypeScript
ArrowFunction
() => { return formatDatetime(locale, createdAtISO); }
samchan0221/authgear-server
portal/src/graphql/adminapi/UserDetailSummary.tsx
TypeScript
ArrowFunction
() => { return formatDatetime(locale, lastLoginAtISO); }
samchan0221/authgear-server
portal/src/graphql/adminapi/UserDetailSummary.tsx
TypeScript
InterfaceDeclaration
interface UserDetailSummaryProps { className?: string; userInfo: UserInfo; createdAtISO: string | null; lastLoginAtISO: string | null; }
samchan0221/authgear-server
portal/src/graphql/adminapi/UserDetailSummary.tsx
TypeScript
MethodDeclaration
cn(styles
samchan0221/authgear-server
portal/src/graphql/adminapi/UserDetailSummary.tsx
TypeScript
ArrowFunction
async () => { /** make sure not to do something before the config is ready */ let scullyConfig: ScullyConfig; let err; /** load the config, and use the defaults when there is an error */ try { scullyConfig = await loadConfig; } catch (e) { scullyConfig = scullyDefaults as ScullyConfig; /** stor...
beeman/scully
libs/scully/src/scully.ts
TypeScript
ArrowFunction
(e) => e
beeman/scully
libs/scully/src/scully.ts
TypeScript
ArrowFunction
(e) => false
beeman/scully
libs/scully/src/scully.ts
TypeScript
ArrowFunction
() => new Bxios
HugoJF/banco-imobiliario-webapp
resources/js/bxios.ts
TypeScript
ClassDeclaration
export class Bxios { private method: AxiosRequestConfig['method'] = 'get'; private url: string = ''; private headers: { [header: string]: string } = {}; private data: any; private formData: FormData | undefined = undefined; private custom: AxiosRequestConfig = {}; constructor() { t...
HugoJF/banco-imobiliario-webapp
resources/js/bxios.ts
TypeScript
MethodDeclaration
get(...url: (string | any)[]) { this.parseUrl(url); this.method = 'get'; return this; }
HugoJF/banco-imobiliario-webapp
resources/js/bxios.ts
TypeScript
MethodDeclaration
post(...url: (string | any)[]) { this.parseUrl(url); this.method = 'post'; return this; }
HugoJF/banco-imobiliario-webapp
resources/js/bxios.ts
TypeScript
MethodDeclaration
patch(...url: (string | any)[]) { this.parseUrl(url); this.method = 'patch'; return this; }
HugoJF/banco-imobiliario-webapp
resources/js/bxios.ts
TypeScript
MethodDeclaration
delete(...url: (string | any)[]) { this.parseUrl(url); this.method = 'delete'; return this; }
HugoJF/banco-imobiliario-webapp
resources/js/bxios.ts
TypeScript
MethodDeclaration
body(data: any) { this.setData(data); return this; }
HugoJF/banco-imobiliario-webapp
resources/js/bxios.ts
TypeScript
MethodDeclaration
setCustom(data: AxiosRequestConfig) { this.custom = data; return this; }
HugoJF/banco-imobiliario-webapp
resources/js/bxios.ts
TypeScript
MethodDeclaration
setData(data: any) { if (data instanceof FormData) { this.formData = data; } else { this.data = data; } return this; }
HugoJF/banco-imobiliario-webapp
resources/js/bxios.ts
TypeScript
MethodDeclaration
multipartFormData() { this.headers['Content-Type'] = 'multipart/form-data'; return this; }
HugoJF/banco-imobiliario-webapp
resources/js/bxios.ts
TypeScript
MethodDeclaration
patchFormDataFix() { // https://github.com/laravel/framework/issues/13457 if (this.formData) { this.formData.append('_method', 'PATCH'); this.method = 'post'; } return this; }
HugoJF/banco-imobiliario-webapp
resources/js/bxios.ts
TypeScript
MethodDeclaration
send<T>() { return window.axios.request<T>({ method: this.method, url: this.url, data: this.formData ?? this.data, ...this.custom, }) }
HugoJF/banco-imobiliario-webapp
resources/js/bxios.ts
TypeScript
MethodDeclaration
private parseUrl(url: string | any[]) { if (!Array.isArray(url)) { url = [url]; } url = ['api', ...url]; url = url.join('/'); if (!url.startsWith('/')) { url = '/' + url; } this.url = url; }
HugoJF/banco-imobiliario-webapp
resources/js/bxios.ts
TypeScript
ArrowFunction
(props: Props) => { const { users, userSelected, idUserDelete } = props; const renderPaginationListUsers = ( <> <thead> <tr> <th>Id</th> <th>Nome do Usuário</th> <th>E-mail</th> <th>Data de Cadastro</th> </tr> </thead> <tbody> {...
victorgorgonho/whitelabel-management-software-frontend
src/components/ListUsers/index.tsx
TypeScript
ArrowFunction
user => ( <tr className="table-item"
victorgorgonho/whitelabel-management-software-frontend
src/components/ListUsers/index.tsx
TypeScript
InterfaceDeclaration
interface Props { users: User[]; userSelected(user: User): any; idUserDelete(id: string | undefined): any; }
victorgorgonho/whitelabel-management-software-frontend
src/components/ListUsers/index.tsx
TypeScript
MethodDeclaration
format(parseISO
victorgorgonho/whitelabel-management-software-frontend
src/components/ListUsers/index.tsx
TypeScript
ArrowFunction
({ label, message, color = "orange", title, url, }: ShieldProps) => { const Wrapper = url ? (p: AnchorProps) => ( <a {...p} href={url} title={title} target="_blank" rel="noopener noreferrer" />
LaudateCorpus1/doc-blocks
components/Shield/src/index.tsx
TypeScript
ArrowFunction
(p: AnchorProps) => ( <a {...p}
LaudateCorpus1/doc-blocks
components/Shield/src/index.tsx
TypeScript
InterfaceDeclaration
interface ShieldProps { /** The current label */ label?: string; /** The current message */ message?: string; /** The color behind the message */ color?: string; /** A link to open when the shield is clicked */ url?: string; /** A title for the link */ title?: string; }
LaudateCorpus1/doc-blocks
components/Shield/src/index.tsx
TypeScript
TypeAliasDeclaration
type AnchorProps = JSX.LibraryManagedAttributes< "a", React.ComponentPropsWithoutRef<"a"> >;
LaudateCorpus1/doc-blocks
components/Shield/src/index.tsx
TypeScript
ArrowFunction
() => { it('should deep clone objects', () => { const a: Transaction = { id: `this-is-a`, name: `Object A`, email: `object-a@ab.cd`, age: 12, phone: `1234512345`, connectionInfo: { type: `object::a`, con...
abey-alex/riskie
helpers/object.test.ts
TypeScript
ArrowFunction
() => { const a: Transaction = { id: `this-is-a`, name: `Object A`, email: `object-a@ab.cd`, age: 12, phone: `1234512345`, connectionInfo: { type: `object::a`, confidence: 1, }, geoIn...
abey-alex/riskie
helpers/object.test.ts
TypeScript
EnumDeclaration
export enum ProjectTopicTitle { Overview = 'Overview', Problem = 'Problem', TargetMarket = 'Target Market', Benefits = 'Benefit to Network & Community', CenteredAroundTNB = 'Centered around TNB', EstimatedCompletionDate = 'Estimated completion date', }
ChandanNats/Website-2
src/types/projects.ts
TypeScript
EnumDeclaration
export enum ProjectTopicAnchor { Overview = 'topic-overview', Problem = 'topic-problem', TargetMarket = 'topic-target-market', Benefits = 'topic-benefits', CenteredAroundTNB = 'topic-centered-around-tnb', EstimatedCompletionDate = 'topic-completion-date', }
ChandanNats/Website-2
src/types/projects.ts
TypeScript
TypeAliasDeclaration
export type Project = { pk: string; created_date: string; modified_date: string; title: string; description: string; logo: string; github_url: string; overview: string; problem: string; target_market: string; benefits: string; centered_around_tnb: string; estimated_completion_date: string; ...
ChandanNats/Website-2
src/types/projects.ts
TypeScript
TypeAliasDeclaration
export type Milestone = { uuid: string; created_date: string; modified_date: string; number: number; description: string; project: string; };
ChandanNats/Website-2
src/types/projects.ts
TypeScript
TypeAliasDeclaration
export type ProjectTopicMap = { [key: string]: ProjectTopic; };
ChandanNats/Website-2
src/types/projects.ts
TypeScript
TypeAliasDeclaration
export type ProjectTopic = { anchor: ProjectTopicAnchor; position: number; title: ProjectTopicTitle; };
ChandanNats/Website-2
src/types/projects.ts
TypeScript
ArrowFunction
(block: IBlock) => <p>{blockToText(block)}</p>, [BLOCKS.HEADING1]
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ArrowFunction
(block: IBlock) => <h2>{blockToText(block)}</h2>, [BLOCKS.HEADING3]
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ArrowFunction
(block: IBlock) => <h3>{blockToText(block)}</h3>, [BLOCKS.BULLETEDLISTITEM]
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ArrowFunction
(block: IBlock) => <li>{blockToText(block)}</li>, [BLOCKS.NUMBEREDLISTITEM]
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ArrowFunction
(block: IBlock) => <li>{blockToText(block)}</li>, [BLOCKS.BULLETEDLIST]
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ArrowFunction
(block: IBlock) => ( <ul> {block.list.map((listItem) => blockRenderer(listItem, defaultRenderers))} </ul> )
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ArrowFunction
(listItem) => blockRenderer(listItem, defaultRenderers)
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ArrowFunction
(block: IBlock) => ( <ol> {block.list.map((listItem) => blockRenderer(listItem, defaultRenderers))} </ol> )
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ArrowFunction
(block: IBlock) => ( <blockquote>{blockToText(block)}</blockquote> )
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ArrowFunction
(block: IBlock) => <code>{blockToText(block)}</code>, [BLOCKS.IMAGE]
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ArrowFunction
(block: IBlock) => <img src
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ArrowFunction
(block) => ( <audio controls
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ArrowFunction
(block) => ( <video controls
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ArrowFunction
(block: IBlock) => <div>{blockToText(block)}</div>,
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ArrowFunction
( blockList: Array<IBlock>, renderers: RenderNode ) => { const remappedContent = remapContent(blockList) return React.Children.toArray( remappedContent.map((block: IBlock) => { return blockRenderer(block, renderers) }) ) }
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ArrowFunction
(block: IBlock) => { return blockRenderer(block, renderers) }
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
MethodDeclaration
blockToText(block)
piotrzaborow/notion-blocks-react-renderer
src/blocksToReactComponents.tsx
TypeScript
ClassDeclaration
/** * ユーザー情報の編集ページコンポーネントクラス。 */ @Component({ templateUrl: './user-edit.component.html', }) export class UserEditComponent implements OnInit { /** ユーザー */ user: User; /** エラー情報 */ error: string; /** * サービスをDIしてコンポーネントを生成する。 * @param route ルート情報。 * @param router ルートサービス。 * @param userService ユーザー関連サービス。...
ktanakaj/breakout-mk
breakout-web/src/app/users/user-edit.component.ts
TypeScript
MethodDeclaration
/** * コンポーネント起動時の処理。 * @returns 処理状態。 */ async ngOnInit(): Promise<void> { await this.reset(); }
ktanakaj/breakout-mk
breakout-web/src/app/users/user-edit.component.ts
TypeScript
MethodDeclaration
/** * 初期表示への状態リセット。 * @returns 処理状態。 */ async reset(): Promise<void> { const userId = this.route.snapshot.params['id']; this.user = await this.userService.findById(userId); }
ktanakaj/breakout-mk
breakout-web/src/app/users/user-edit.component.ts
TypeScript
MethodDeclaration
/** * 更新処理。 * @returns 処理状態。 */ async put(): Promise<void> { try { await this.userService.update(this.user); // 管理者は一覧画面へ、それ以外は自分を変更したはずなので自分の情報へ戻る if (this.userService.me.status === 'admin') { this.router.navigate(['/users']); } else { this.router.navigate(['/users/me']); } } catch (e)...
ktanakaj/breakout-mk
breakout-web/src/app/users/user-edit.component.ts
TypeScript
InterfaceDeclaration
interface AddressFormCountryResource { uri?: string; country?: CountryResource; attributes?: FormFieldResource[]; emergencyNumber?: string; default?: boolean; }
jsdelivrbot/ringcentral-ts
src/definitions/AddressFormCountryResource.ts
TypeScript
FunctionDeclaration
export function ViewAddressWarning({ children }: ViewAddressStrikeProps) { const connectedWallet = useConnectedWallet(); return connectedWallet?.connectType === ConnectType.READONLY ? ( <Tooltip title="Currently in “View an Address” mode. To make transactions, please disconnect and reconnect using Terra...
0xWWW/anchor-web-app
app/src/components/ViewAddressWarning.tsx
TypeScript
InterfaceDeclaration
export interface ViewAddressStrikeProps { children: ReactNode; }
0xWWW/anchor-web-app
app/src/components/ViewAddressWarning.tsx
TypeScript
ArrowFunction
(inițial: setare locală)
OBCdev/OBC
src/qt/locale/bitcoin_ro_RO.ts
TypeScript
ArrowFunction
(implicit: 17755 sau testnet: 27755)
OBCdev/OBC
src/qt/locale/bitcoin_ro_RO.ts
TypeScript
ArrowFunction
(implicit:17756 sau testnet: 27756)
OBCdev/OBC
src/qt/locale/bitcoin_ro_RO.ts
TypeScript
ArrowFunction
(implicit: 127.0.0.1)
OBCdev/OBC
src/qt/locale/bitcoin_ro_RO.ts
TypeScript
ArrowFunction
(implicit: 100)
OBCdev/OBC
src/qt/locale/bitcoin_ro_RO.ts
TypeScript
ArrowFunction
( $stateParams: IFruitDetailRouteParams, fruitService: FruitService, fruitUtils: FruitUtils) => { // Execute the factory method and cast the result of the async operation to the desired container and re...
DOwen55/ng-rosetta-orig
fruit20-15/src/legacy/fruit15/app.ts
TypeScript
ArrowFunction
(data) => { // Pass the returned array into the service.method along with the desired ID to filter out the desired item. // Note that we case the $stateParams dependency to a custom interface to limit the available parameters, ...
DOwen55/ng-rosetta-orig
fruit20-15/src/legacy/fruit15/app.ts
TypeScript
ArrowFunction
( $stateProvider: angular.ui.IStateProvider, $urlRouterProvider: angular.ui.IUrlRouterProvider) => { return new AppConfig($stateProvider, $urlRouterProvider); }
DOwen55/ng-rosetta-orig
fruit20-15/src/legacy/fruit15/app.ts
TypeScript
ClassDeclaration
// Define a configuration object, to be passed into angular's module.config method during startup. export class AppConfig { protected static $inject = ['$stateProvider', '$urlRouterProvider']; constructor( private $stateProvider: angular.ui.IStateProvider, private $urlRouterProvider: angular.u...
DOwen55/ng-rosetta-orig
fruit20-15/src/legacy/fruit15/app.ts
TypeScript
InterfaceDeclaration
// Custom interface used to provide a typed property to retrieve state parameters. interface IFruitDetailRouteParams extends ng.ui.IStateParamsService { FruitItemID: string; }
DOwen55/ng-rosetta-orig
fruit20-15/src/legacy/fruit15/app.ts
TypeScript
MethodDeclaration
private initializeStates(): void { this.$urlRouterProvider.otherwise('/home'); this.$stateProvider // Home State .state('home', { url: '/home', component: 'homecomponent' }) // Fruit List State .state('fruit-...
DOwen55/ng-rosetta-orig
fruit20-15/src/legacy/fruit15/app.ts
TypeScript
ArrowFunction
({ article, updateArticle, deleteArticle, }: ArticleOptions) => { // const buttonRef = useRef(null); const [isOpen, setIsOpen] = React.useState(false); const { portal } = usePortal(); return ( <> <Dropdown placement="bottom-start" portal={portal} isOpen={isOpen} ...
gpn-prototypes/vega-fem
src/components/Shared/Article/ArticleOptionsDropdown/ArticleOptionsDropdown.tsx
TypeScript
ArrowFunction
({ props: menuProps }): React.ReactNode => ( <div className={cnArticleOptionsDropdown('menu')}
gpn-prototypes/vega-fem
src/components/Shared/Article/ArticleOptionsDropdown/ArticleOptionsDropdown.tsx
TypeScript
ArrowFunction
() => setIsOpen(false)
gpn-prototypes/vega-fem
src/components/Shared/Article/ArticleOptionsDropdown/ArticleOptionsDropdown.tsx
TypeScript
InterfaceDeclaration
export interface ArticleOptions { article: Article; updateArticle: (article: Article) => void; deleteArticle: (article: Article) => void; }
gpn-prototypes/vega-fem
src/components/Shared/Article/ArticleOptionsDropdown/ArticleOptionsDropdown.tsx
TypeScript
MethodDeclaration
cnArticleOptionsDropdown('menu')
gpn-prototypes/vega-fem
src/components/Shared/Article/ArticleOptionsDropdown/ArticleOptionsDropdown.tsx
TypeScript
ClassDeclaration
@Component({ selector: 'app-home-index', template: ` <ui-page> <ui-page-title title="Dashboard"></ui-page-title> <div class="row row-cards"> <div class="col-6 col-sm-4 col-lg-2"> <ui-dashboard-stats number="43" title="New Tickets" percentage=6></ui-dashboard-stats> </di...
CerberusSec/tabler-angular
apps/demo/src/app/home/containers/home-index/home-index.component.ts
TypeScript
FunctionDeclaration
function getSelectionContextSyncEventIds(): string[] { return [SyncUiEventId.SelectionSetChanged, SyncUiEventId.ActiveContentChanged, SyncUiEventId.ActiveViewportChanged, SessionStateActionId.SetNumItemsSelected]; }
BeChaRem/imodeljs
test-apps/ui-test-app/src/frontend/appui/frontstages/Frontstage2.tsx
TypeScript
FunctionDeclaration
function isSelectionSetEmpty(): boolean { const activeContentControl = ContentViewManager.getActiveContentControl(); let selectionCount = 0; if (!UiFramework.frameworkStateKey) selectionCount = UiFramework.store.getState()[UiFramework.frameworkStateKey].frameworkState.sessionState.numItemsSelected; ...
BeChaRem/imodeljs
test-apps/ui-test-app/src/frontend/appui/frontstages/Frontstage2.tsx
TypeScript
FunctionDeclaration
function selectionContextStateFunc(state: Readonly<BaseItemState>): BaseItemState { const isVisible = !isSelectionSetEmpty(); return { ...state, isVisible }; }
BeChaRem/imodeljs
test-apps/ui-test-app/src/frontend/appui/frontstages/Frontstage2.tsx
TypeScript
FunctionDeclaration
function getIsHiddenIfSelectionNotActive(): ConditionalBooleanValue { return new ConditionalBooleanValue(isSelectionSetEmpty, getSelectionContextSyncEventIds()); }
BeChaRem/imodeljs
test-apps/ui-test-app/src/frontend/appui/frontstages/Frontstage2.tsx
TypeScript
ArrowFunction
() => { const iModelConnection = UiFramework.getIModelConnection(); if (iModelConnection) { iModelConnection.selectionSet.emptyAll(); } const tool = IModelApp.toolAdmin.primitiveTool; if (tool) tool.onRestartTool(); else IModelApp.t...
BeChaRem/imodeljs
test-apps/ui-test-app/src/frontend/appui/frontstages/Frontstage2.tsx
TypeScript
ClassDeclaration
/* eslint-disable react/jsx-key, deprecation/deprecation */ export class Frontstage2 extends FrontstageProvider { public get frontstage(): React.ReactElement<FrontstageProps> { const contentLayoutDef: ContentLayoutDef = new ContentLayoutDef( { // Four Views, two stacked on the left, two stacked on the ...
BeChaRem/imodeljs
test-apps/ui-test-app/src/frontend/appui/frontstages/Frontstage2.tsx
TypeScript
ClassDeclaration
/** Define a ToolWidget with Buttons to display in the TopLeft zone. */ class FrontstageToolWidget extends React.Component { // example toolbar item that hides/shows based on selection set public get myClearSelectionItemDef() { return new CommandItemDef({ commandId: "UiFramework.ClearSelection", ...
BeChaRem/imodeljs
test-apps/ui-test-app/src/frontend/appui/frontstages/Frontstage2.tsx
TypeScript
ClassDeclaration
/** Define a NavigationWidget with Buttons to display in the TopRight zone. */ class FrontstageNavigationWidget extends React.Component { public override render() { const horizontalItems = new ItemList([ CoreTools.fitViewCommand, CoreTools.windowAreaCommand, CoreTools.zoomViewCommand, ...
BeChaRem/imodeljs
test-apps/ui-test-app/src/frontend/appui/frontstages/Frontstage2.tsx
TypeScript
MethodDeclaration
public override render() { return ( <ToolWidget appButton={AppTools.backstageToggleCommand} horizontalItems={this._horizontalToolbarItems} verticalItems={this._verticalToolbarItems} /> ); }
BeChaRem/imodeljs
test-apps/ui-test-app/src/frontend/appui/frontstages/Frontstage2.tsx
TypeScript