type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
MethodDeclaration
unhideColumn(index: number): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
unhideRow(index: number): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
deselect(): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
getEnabled(): boolean;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
getIndex(): number;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
setPrevious(value: boolean): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
getSelected(): boolean;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
getSelectable(): boolean;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
buttons(): any[];
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
resetButtons(): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
open(target: JQuery, context: any): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
static extend(proto: Object): BackButton;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
badge(value: string): string;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
badge(value: boolean): string;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
static extend(proto: Object): Collapsible;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
collapse(instant: boolean): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
expand(instant?: boolean): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
toggle(instant?: boolean): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
static extend(proto: Object): DetailButton;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
static extend(proto: Object): Layout;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
append(dataItems: any): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
prepend(dataItems: any): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
replace(dataItems: any): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
remove(dataItems: any): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
setDataItem(item: JQuery, dataItem: kendo.data.Model): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
static extend(proto: Object): ModalView;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
open(target?: JQuery): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
static extend(proto: Object): NavBar;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
title(value: string): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
static extend(proto: Object): Pane;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
navigate(url: string, transition: string): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
replace(url: string, transition: string): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
static extend(proto: Object): PopOver;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
open(target: JQuery): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
value(dataItem: any): any;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
static extend(proto: Object): Scroller;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
animatedScrollTo(x: number, y: number): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
contentResized(): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
enable(): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
pullHandled(): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
scrollHeight(): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
scrollTo(x: number, y: number): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
scrollWidth(): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
zoomOut(): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
static extend(proto: Object): SplitView;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
expandPanes(): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
collapsePanes(): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
badge(tab: string, value: string): string;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
badge(tab: string, value: boolean): string;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
badge(tab: number, value: string): string;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
badge(tab: number, value: boolean): string;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
currentItem(): JQuery;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
switchTo(url: string): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
switchTo(url: number): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
switchByFullUrl(url: string): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
static extend(proto: Object): View;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
contentElement(): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
toDataURL(): string;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
toDataURLAsync(): JQueryPromise<any>;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
MethodDeclaration
append(element: kendo.drawing.Element): void;
hanswright/kendo-ui-core
typescript/kendo.all.d.ts
TypeScript
ClassDeclaration
export class Contact implements ContactInterface { id: String; public name: String; public country: String; public image: String; public state: String; public city: String; public address: String; public phone: String; public coordinates: Coords; constructor(public personId: String) { } dateNor...
j3valentin/fitness
src/client/app/modules/models/contact.model.ts
TypeScript
InterfaceDeclaration
/** * Created by Javier Fonseca <reivaj8904@gmail.com> on 23/01/2017. */ export interface ContactInterface { address?: String; image?: String; }
j3valentin/fitness
src/client/app/modules/models/contact.model.ts
TypeScript
MethodDeclaration
dateNormalizer(date: string) { return date.substring(0, 10); }
j3valentin/fitness
src/client/app/modules/models/contact.model.ts
TypeScript
MethodDeclaration
replacer(key: any, value: any) { if (key.indexOf('image') !== -1) { return undefined; } if (typeof value === 'string') { return value.trim(); } return value; }
j3valentin/fitness
src/client/app/modules/models/contact.model.ts
TypeScript
MethodDeclaration
public toJson() { const json = JSON.stringify(this, this.replacer); return json; }
j3valentin/fitness
src/client/app/modules/models/contact.model.ts
TypeScript
ArrowFunction
() => srv.ngOnDestroy()
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({ providers: [ MenuService, { provide: ALAIN_I18N_TOKEN, useClass: AlainI18NServiceFake }, { provide: ACLService, useClass: MockACLService }, ], }); srv = TestBed.inject<MenuService>(MenuService); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { expect(srv).toBeTruthy(); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add(deepCopy(DATA)); expect(srv.menus.length).toBe(DATA.length); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add(deepCopy(DATA)); let tick = 0; srv.resume(() => ++tick); expect(tick).toBeGreaterThan(0); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => ++tick
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add(deepCopy(DATA)); expect(srv.menus.length).toBe(DATA.length); srv.clear(); expect(srv.menus.length).toBe(0); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { const newMenus = [{ text: 'new menu' }, { text: 'new menu', hide: true }]; srv.add(newMenus); expect(srv.menus[0]._hidden).toBe(false); expect(srv.menus[1]._hidden).toBe(true); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { const newMenus = [{ text: 'new menu' }, { text: 'new menu', group: false }]; srv.add(newMenus); expect(srv.menus[0].group).toBe(true); expect(srv.menus[1].group).toBe(false); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { const newMenus = [{ text: 'new menu' }, { text: 'new menu', disabled: true }]; srv.add(newMenus); expect(srv.menus[0].disabled).toBe(false); expect(srv.menus[1].disabled).toBe(true); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { it('with url', () => { srv.add(deepCopy(DATA)); srv.openedByUrl(`/dashboard/v1`); expect(srv.menus[0]._open).toBe(true); }); it('not found', () => { srv.add(deepCopy(DATA)); srv.openedByUrl(`/notfound`); expect(srv.menus.filter(w => w._open === ...
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add(deepCopy(DATA)); srv.openedByUrl(`/dashboard/v1`); expect(srv.menus[0]._open).toBe(true); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add(deepCopy(DATA)); srv.openedByUrl(`/notfound`); expect(srv.menus.filter(w => w._open === false).length).toBe(srv.menus.length); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
w => w._open === false
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add(deepCopy(DATA)); srv.openedByUrl(null); expect(srv.menus.filter(w => w._open === false).length).toBe(0); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add(deepCopy(DATA)); srv.openedByUrl(`/dashboard/v1/1`, true); expect(srv.menus[0]._open).toBe(true); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { it('when recursive is false', () => { const item = srv.getHit(DATA, '/dashboard/invalid'); expect(item == null).toBe(true); }); it('when recursive is true', () => { const item = srv.getHit(DATA, '/dashboard/invalid', true); expect(item == null).toBe(false); ...
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { const item = srv.getHit(DATA, '/dashboard/invalid'); expect(item == null).toBe(true); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { const item = srv.getHit(DATA, '/dashboard/invalid', true); expect(item == null).toBe(false); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { expect(srv.getHit(DATA, '/test?a=1', true) != null).toBe(true); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { it('with url', () => { srv.add(deepCopy(DATA)); const menus = srv.getPathByUrl(`/dashboard/v1`); expect(menus.length).toBe(2); expect(menus[0].text).toBe('dashboard'); }); it('invalid url', () => { srv.add(deepCopy(DATA)); const menus = srv.getP...
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add(deepCopy(DATA)); const menus = srv.getPathByUrl(`/dashboard/v1`); expect(menus.length).toBe(2); expect(menus[0].text).toBe('dashboard'); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add(deepCopy(DATA)); const menus = srv.getPathByUrl(`/dashboard/v1111`); expect(menus.length).toBe(0); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add(deepCopy(DATA)); expect(srv.getPathByUrl(`/dashboard/1`).length).toBe(0); expect(srv.getPathByUrl(`/dashboard/1`, true).length).toBe(1); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { it('should be under the dashboard', () => { srv.add(deepCopy(DATA)); expect(srv.menus[0].children![1].children!.length).toBe(1); }); it('should be use [shortcutRoot: true]', () => { const newMenus = [ { text: 'new menu', children: [ ...
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add(deepCopy(DATA)); expect(srv.menus[0].children![1].children!.length).toBe(1); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { const newMenus = [ { text: 'new menu', children: [ { text: 'submenu1', link: '/' }, { text: 'submenu2', link: '/' }, { text: 'sc', shortcutRoot: true }, ], }, { text: 'text', ...
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { const newMenus = [ { text: 'new menu', i18n: 'test', }, { text: 'text', children: [{ text: 'sub text', link: '/text/sub', shortcut: true }], }, ] as Menu[]; srv.add(newMenus); expect(srv.menu...
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { const newMenus = [ { text: 'new menu', children: [ { text: 'submenu1', link: '/' }, { text: 'submenu2', link: '/' }, { text: 'sc', shortcutRoot: true }, ], }, { text: 'text', ...
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { const newMenus = [ { text: 'new menu', acl: 'admin' }, { text: 'new menu', acl: 'user' }, ]; srv.add(newMenus); expect(srv.menus[0]._aclResult).toBe(true); expect(srv.menus[1]._aclResult).toBe(false); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
(done: () => void) => { const newMenus = [{ text: 'new menu' }]; srv.change.pipe(filter(ls => ls.length > 0)).subscribe(res => { expect(res.length).toBe(1); expect(res[0].text).toBe(newMenus[0].text); done(); }); srv.add(newMenus); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
ls => ls.length > 0
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
res => { expect(res.length).toBe(1); expect(res[0].text).toBe(newMenus[0].text); done(); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { const newMenus = [{ text: 'new menu', key: 'a' }, { text: 'new menu' }]; srv.add(newMenus); expect(srv.getItem('a') == null).toBe(false); expect(srv.getItem('invalid-key') == null).toBe(true); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { it('should be working', () => { const newMenus = [{ text: 'a', key: 'a' }]; srv.add(newMenus); expect(srv.getItem('a')!.text).toBe('a'); srv.setItem('a', { text: 'b', badge: 10 }); expect(srv.getItem('a')!.text).toBe('b'); expect(srv.getItem('a')!.badge).to...
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript