type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ArrowFunction |
async () => {
expect(await testSubjects.exists('confirmModalConfirmButton')).to.be(true);
} | SquirtsMacintosh/kibana | x-pack/test/functional/apps/code/lang_server_coverage.ts | TypeScript |
ArrowFunction |
async () => {
const repositoryItems = await testSubjects.findAll(repositoryListSelector);
expect(repositoryItems).to.have.length(0);
} | SquirtsMacintosh/kibana | x-pack/test/functional/apps/code/lang_server_coverage.ts | TypeScript |
ArrowFunction |
async () => {
// Make sure the indexes exist.
await esSupertest
.head('/.code-symbol-github.com-elastic-code-examples_smoke-19c9057c-1')
.expect(200);
await esSupertest
.head('/.code-reference-github.com-elastic-code-examples_smoke-19c9057c-1')
.expect(200);
con... | SquirtsMacintosh/kibana | x-pack/test/functional/apps/code/lang_server_coverage.ts | TypeScript |
ArrowFunction |
(res: any) => res.body | SquirtsMacintosh/kibana | x-pack/test/functional/apps/code/lang_server_coverage.ts | TypeScript |
ClassDeclaration |
@Injectable({
providedIn: 'root',
})
export class PollService {
constructor(private http: HttpClient) {}
public async createPoll(
title: string,
description: string
): Promise<PollInfo> {
return await apiRequest<PollInfo>(this.http, '/create_poll', {
title,
description,
... | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
InterfaceDeclaration |
export interface PollInfo {
id: number;
user_id: number;
title: string;
description: string;
create_time: number;
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
InterfaceDeclaration |
export interface PollOptionInfo {
id: number;
poll_id: number;
value: string;
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
InterfaceDeclaration |
export interface PollVoteInfo {
id: number;
user_id: number;
poll_id: number;
poll_option_id: number;
vote_time: number;
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
InterfaceDeclaration |
export interface PollVoterInfo {
user_id: number;
username: string;
poll_option_id: number;
poll_option_value: string;
vote_time: number;
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async createPoll(
title: string,
description: string
): Promise<PollInfo> {
return await apiRequest<PollInfo>(this.http, '/create_poll', {
title,
description,
});
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async getPollInfo(pollID: number): Promise<PollInfo> {
return await apiRequest<PollInfo>(this.http, '/get_poll_info', {
poll_id: pollID,
});
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async getPollOptions(pollID: number): Promise<PollOptionInfo[]> {
return await apiRequest<PollOptionInfo[]>(this.http, '/get_poll_options', {
poll_id: pollID,
});
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async getPollVotes(pollID: number): Promise<PollVoteInfo[]> {
return await apiRequest<PollVoteInfo[]>(this.http, '/get_poll_votes', {
poll_id: pollID,
});
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async setPollTitle(pollID: number, title: string): Promise<void> {
await apiRequest(this.http, '/set_poll_title', { poll_id: pollID, title });
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async setPollDescription(
pollID: number,
description: string
): Promise<void> {
await apiRequest(this.http, '/set_poll_description', {
poll_id: pollID,
description,
});
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async deletePoll(pollID: number): Promise<void> {
await apiRequest(this.http, '/delete_poll', { poll_id: pollID });
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async createPollOption(
pollID: number,
value: string
): Promise<PollOptionInfo> {
return await apiRequest<PollOptionInfo>(this.http, '/create_poll_option', {
poll_id: pollID,
value,
});
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async getPollOptionInfo(
pollOptionID: number
): Promise<PollOptionInfo> {
return await apiRequest<PollOptionInfo>(
this.http,
'/get_poll_option_info',
{ poll_option_id: pollOptionID }
);
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async setPollOptionValue(
pollOptionID: number,
value: string
): Promise<void> {
await apiRequest(this.http, '/set_poll_option_value', {
poll_option_id: pollOptionID,
new_value: value,
});
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async getPollOptionPoll(pollOptionID: number): Promise<PollInfo> {
return await apiRequest<PollInfo>(this.http, '/get_poll_option_poll', {
poll_option_id: pollOptionID,
});
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async deletePollOption(pollOptionID: number): Promise<void> {
await apiRequest(this.http, '/delete_poll_option', {
poll_option_id: pollOptionID,
});
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async pollVote(pollOptionID: number): Promise<PollVoteInfo> {
return await apiRequest<PollVoteInfo>(this.http, '/poll_vote', {
poll_option_id: pollOptionID,
});
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async pollUnvote(pollID: number): Promise<void> {
await apiRequest(this.http, '/poll_unvote', { poll_id: pollID });
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async getPollVotePoll(pollVoteID: number): Promise<PollInfo> {
return await apiRequest<PollInfo>(this.http, '/get_poll_vote_poll', {
poll_vote_id: pollVoteID,
});
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async getUserVote(pollID: number): Promise<PollVoteInfo> {
return await apiRequest<PollVoteInfo>(this.http, '/get_user_vote', {
poll_id: pollID,
});
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
MethodDeclaration |
public async getPollVoters(pollID: number): Promise<PollVoterInfo[]> {
return await apiRequest<PollVoterInfo[]>(this.http, '/get_poll_voters', {
poll_id: pollID,
});
} | WKHAllen/GreenPoll | app/src/app/poll/poll.service.ts | TypeScript |
ClassDeclaration |
export class CsvBuilder {
setDelimeter(setDelimeter: string): CsvBuilder
setColumns(columns: string[]): CsvBuilder
addRows(rows: unknown): CsvBuilder
exportFile(): void
constructor(filename: string)
} | Language-Mapping/language-map | src/components/results/filefy.d.ts | TypeScript |
MethodDeclaration |
setDelimeter(setDelimeter: string): CsvBuilder | Language-Mapping/language-map | src/components/results/filefy.d.ts | TypeScript |
MethodDeclaration |
setColumns(columns: string[]): CsvBuilder | Language-Mapping/language-map | src/components/results/filefy.d.ts | TypeScript |
MethodDeclaration |
addRows(rows: unknown): CsvBuilder | Language-Mapping/language-map | src/components/results/filefy.d.ts | TypeScript |
MethodDeclaration |
exportFile(): void | Language-Mapping/language-map | src/components/results/filefy.d.ts | TypeScript |
InterfaceDeclaration | /**
* _TraceUser shape
*/
export interface _TraceUser {
/**
* _String shape
*/
UserName?: string;
/**
* _ServiceIds shape
*/
ServiceIds?: Array<_ServiceId>|Iterable<_ServiceId>;
} | AllanFly120/aws-sdk-js-staging | packages/client-xray-node/types/_TraceUser.ts | TypeScript |
InterfaceDeclaration |
export interface _UnmarshalledTraceUser extends _TraceUser {
/**
* _ServiceIds shape
*/
ServiceIds?: Array<_UnmarshalledServiceId>;
} | AllanFly120/aws-sdk-js-staging | packages/client-xray-node/types/_TraceUser.ts | TypeScript |
ArrowFunction |
() => {
return (
<PageContainer>
<div>👷♂️🚧</div>
<p>this page is under construction</p>
</PageContainer> | crococoders/oab | src/pages/graduates/index.tsx | TypeScript |
FunctionDeclaration |
export function createLinkToRepository(repository: { owner: string; name: string }, branch?: string): string {
return `https://github.com/${encodeURIComponent(repository.owner)}/${encodeURIComponent(repository.name)}${
branch ? `/tree/${encodeURIComponent(branch)}` : ''
}`;
} | Apon77/cirrus-ci-web | src/utils/github.ts | TypeScript |
InterfaceDeclaration |
export interface IDiscordStrictlyContainsThisCommandWithPrefixData {
command: DiscordMessageCommandEnum;
message: string;
prefix: string;
} | Sonia-corporation/il-est-midi | src/features/discord/messages/interfaces/commands/checks/discord-strictly-contains-this-command-with-prefix-data.ts | TypeScript |
FunctionDeclaration | /**
* Returns the event and their associated images based on options provided to the hook
*
* @param options Takes a tags array, amount to return, and a filter function. Filter must take an event node and return bool
*/
export default function useEvents(options: EventHookOptions) {
const { tags, amount, filterF... | SLoh4137/umcp-tase | src/hooks/useEvents.tsx | TypeScript |
ArrowFunction |
(eventTag: GatsbyTypes.Maybe<string>) => {
return eventTag ? tags?.includes(eventTag) : false
} | SLoh4137/umcp-tase | src/hooks/useEvents.tsx | TypeScript |
ArrowFunction |
(eventNode) =>
eventNode.node.frontmatter?.tags &&
eventNode.node.frontmatter.tags.some(containsTag) | SLoh4137/umcp-tase | src/hooks/useEvents.tsx | TypeScript |
ArrowFunction |
(filterFunction) => events = events.filter(filterFunction) | SLoh4137/umcp-tase | src/hooks/useEvents.tsx | TypeScript |
InterfaceDeclaration |
export interface EventFilterFunction {
(edge: EventEdge): boolean
} | SLoh4137/umcp-tase | src/hooks/useEvents.tsx | TypeScript |
TypeAliasDeclaration | // Type Definitions
type EventEdge = GatsbyTypes.EventsQuery["allMarkdownRemark"]["edges"][0] | SLoh4137/umcp-tase | src/hooks/useEvents.tsx | TypeScript |
TypeAliasDeclaration |
type EventNode = EventEdge["node"] | SLoh4137/umcp-tase | src/hooks/useEvents.tsx | TypeScript |
TypeAliasDeclaration |
export type EventHookOptions = Readonly<{
tags?: string[]
amount?: number
filterFunctions?: EventFilterFunction[]
}> | SLoh4137/umcp-tase | src/hooks/useEvents.tsx | TypeScript |
TypeAliasDeclaration |
export type EventArrayType = ReturnType<typeof useEvents> | SLoh4137/umcp-tase | src/hooks/useEvents.tsx | TypeScript |
TypeAliasDeclaration |
export type EventType = EventArrayType[0] | SLoh4137/umcp-tase | src/hooks/useEvents.tsx | TypeScript |
TypeAliasDeclaration |
export type ImageType = EventType["image"] | SLoh4137/umcp-tase | src/hooks/useEvents.tsx | TypeScript |
InterfaceDeclaration |
export interface StepProps extends StandardProps<
React.HTMLAttributes<HTMLDivElement>,
StepClasskey
> {
active?: boolean;
alternativeLabel?: boolean;
children?: React.ReactNode;
completed?: boolean;
connector?: React.ReactElement<any>;
disabled?: boolean;
index?: number;
last?: boolean;
orientat... | SkribbleME/material-ui-next | Stepper/Step.d.ts | TypeScript |
TypeAliasDeclaration |
export type StepClasskey =
| 'root'
| 'horizontal'
| 'alternativeLabel'
; | SkribbleME/material-ui-next | Stepper/Step.d.ts | TypeScript |
ClassDeclaration |
declare class IdentityProviderCredentialsClient extends Resource {
constructor(resourceJson: Record<string, unknown>, client: Client);
client_id: string;
client_secret: string;
} | gormanho-okta/okta-sdk-nodejs | src/types/models/IdentityProviderCredentialsClient.d.ts | TypeScript |
TypeAliasDeclaration |
type IdentityProviderCredentialsClientOptions = OptionalKnownProperties<IdentityProviderCredentialsClient>; | gormanho-okta/okta-sdk-nodejs | src/types/models/IdentityProviderCredentialsClient.d.ts | TypeScript |
FunctionDeclaration | /**
* Throws an exception when two MatDrawer are matching the same position.
* @docs-private
*/
export function throwMatDuplicatedDrawerError(position: string) {
throw Error(`A drawer was already declared for 'position="${position}"'`);
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
FunctionDeclaration | /** @docs-private */
export function MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY(): boolean {
return false;
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
() => MatDrawerContainer | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
() => {
this._changeDetectorRef.markForCheck();
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
e => e.fromState !== e.toState && e.toState.indexOf('open') === 0 | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
o => !o | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
e => e.fromState !== e.toState && e.toState === 'void' | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
(opened: boolean) => {
if (opened) {
if (this._doc) {
this._elementFocusedBeforeDrawerWasOpened = this._doc.activeElement as HTMLElement;
}
if (this._isFocusTrapEnabled && this._focusTrap) {
this._trapFocus();
}
} else {
this._restoreFocus();
... | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
() => {
(fromEvent(this._elementRef.nativeElement, 'keydown') as Observable<KeyboardEvent>).pipe(
filter(event => {
return event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event);
}),
takeUntil(this._destroyed)
).subscribe(event => this... | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
event => {
return event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event);
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
event => this._ngZone.run(() => {
this.close();
event.stopPropagation();
event.preventDefault();
}) | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
() => {
this.close();
event.stopPropagation();
event.preventDefault();
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
(x, y) => {
return x.fromState === y.fromState && x.toState === y.toState;
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
(event: AnimationEvent) => {
const {fromState, toState} = event;
if ((toState.indexOf('open') === 0 && fromState === 'void') ||
(toState === 'void' && fromState.indexOf('open') === 0)) {
this.openedChange.emit(this._opened);
}
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
hasMovedFocus => {
// If there were no focusable elements, focus the sidenav itself so the keyboard navigation
// still works. We need to check that `focus` is a function due to Universal.
if (!hasMovedFocus && typeof this._elementRef.nativeElement.focus === 'function') {
this._elementRef.nat... | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
resolve => {
this.openedChange.pipe(take(1)).subscribe(open => resolve(open ? 'open' : 'close'));
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
open => resolve(open ? 'open' : 'close') | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
() => {
this._validateDrawers();
this.updateContentMargins();
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
() => this.updateContentMargins() | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
() => {
this._validateDrawers();
this._drawers.forEach((drawer: MatDrawer) => {
this._watchDrawerToggle(drawer);
this._watchDrawerPosition(drawer);
this._watchDrawerMode(drawer);
});
if (!this._drawers.length ||
this._isDrawerOpen(this._start) ||
th... | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
(drawer: MatDrawer) => {
this._watchDrawerToggle(drawer);
this._watchDrawerPosition(drawer);
this._watchDrawerMode(drawer);
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
drawer => drawer.open() | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
drawer => drawer.close() | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
() => this._contentMarginChanges.next(this._contentMargins) | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
() => this._doCheckSubject.next() | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
(event: AnimationEvent) => event.fromState !== event.toState | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
(event: AnimationEvent) => {
// Set the transition class on the container so that the animations occur. This should not
// be set initially because animations should only be triggered via a change in state.
if (event.toState !== 'open-instant' && this._animationMode !== 'NoopAnimations') {
th... | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
() =>
this._setContainerClass(drawer.opened) | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
() => {
this._ngZone.onMicrotaskEmpty.asObservable().pipe(take(1)).subscribe(() => {
this._validateDrawers();
});
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
() => {
this._validateDrawers();
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
() => {
this.updateContentMargins();
this._changeDetectorRef.markForCheck();
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
drawer => {
if (drawer.position == 'end') {
if (this._end != null) {
throwMatDuplicatedDrawerError('end');
}
this._end = drawer;
} else {
if (this._start != null) {
throwMatDuplicatedDrawerError('start');
}
this._start = drawer;
}
... | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
drawer => drawer && !drawer.disableClose && this._canHaveBackdrop(drawer) | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ArrowFunction |
drawer => drawer!.close() | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
ClassDeclaration |
@Component({
moduleId: module.id,
selector: 'mat-drawer-content',
template: '<ng-content></ng-content>',
host: {
'class': 'mat-drawer-content',
'[style.margin-left.px]': '_container._contentMargins.left',
'[style.margin-right.px]': '_container._contentMargins.right',
},
changeDetection: ChangeD... | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
TypeAliasDeclaration | /** Result of the toggle promise that indicates the state of the drawer. */
export type MatDrawerToggleResult = 'open' | 'close'; | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
MethodDeclaration |
ngAfterContentInit() {
this._container._contentMarginChanges.subscribe(() => {
this._changeDetectorRef.markForCheck();
});
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
MethodDeclaration | /** Traps focus inside the drawer. */
private _trapFocus() {
if (!this.autoFocus) {
return;
}
this._focusTrap.focusInitialElementWhenReady().then(hasMovedFocus => {
// If there were no focusable elements, focus the sidenav itself so the keyboard navigation
// still works. We need to check... | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
MethodDeclaration | /**
* If focus is currently inside the drawer, restores it to where it was before the drawer
* opened.
*/
private _restoreFocus() {
if (!this.autoFocus) {
return;
}
const activeEl = this._doc && this._doc.activeElement;
if (activeEl && this._elementRef.nativeElement.contains(activeEl)) ... | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
MethodDeclaration |
ngAfterContentInit() {
this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);
this._updateFocusTrapState();
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
MethodDeclaration |
ngAfterContentChecked() {
// Enable the animations after the lifecycle hooks have run, in order to avoid animating
// drawers that are open by default. When we're on the server, we shouldn't enable the
// animations, because we don't want the drawer to animate the first time the user sees
// the page.
... | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
MethodDeclaration |
ngOnDestroy() {
if (this._focusTrap) {
this._focusTrap.destroy();
}
this._animationStarted.complete();
this._animationEnd.complete();
this._modeChanged.complete();
this._destroyed.next();
this._destroyed.complete();
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
MethodDeclaration | /**
* Open the drawer.
* @param openedVia Whether the drawer was opened by a key press, mouse click or programmatically.
* Used for focus management after the sidenav is closed.
*/
open(openedVia?: FocusOrigin): Promise<MatDrawerToggleResult> {
return this.toggle(true, openedVia);
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
MethodDeclaration | /** Close the drawer. */
close(): Promise<MatDrawerToggleResult> {
return this.toggle(false);
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
MethodDeclaration | /**
* Toggle this drawer.
* @param isOpen Whether the drawer should be open.
* @param openedVia Whether the drawer was opened by a key press, mouse click or programmatically.
* Used for focus management after the sidenav is closed.
*/
toggle(isOpen: boolean = !this.opened, openedVia: FocusOrigin = 'progr... | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
MethodDeclaration | /** Updates the enabled state of the focus trap. */
private _updateFocusTrapState() {
if (this._focusTrap) {
this._focusTrap.enabled = this._isFocusTrapEnabled;
}
} | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
MethodDeclaration | // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
// In Ivy the `host` bindings will be merged when this class is extended, whereas in
// ViewEngine they're overwritten.
// TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
// tslint:disable-next-line:no-h... | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
MethodDeclaration | // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
// In Ivy the `host` bindings will be merged when this class is extended, whereas in
// ViewEngine they're overwritten.
// TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
// tslint:disable-next-line:no-h... | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
MethodDeclaration |
ngAfterContentInit() {
this._drawers.changes.pipe(startWith(null)).subscribe(() => {
this._validateDrawers();
this._drawers.forEach((drawer: MatDrawer) => {
this._watchDrawerToggle(drawer);
this._watchDrawerPosition(drawer);
this._watchDrawerMode(drawer);
});
if (!... | 1995tony/components | src/material/sidenav/drawer.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.