type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
(photo:PhotoData) => {return photo.pictureURL;}
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
ClassDeclaration
export class ChapterData { private _timestamp:any; //made this field private because I had bugs where things messed with it. id:string; chapterType:string = 'undefined';//options: 'undefined', 'diy', 'running'. eventType:string = 'regular'; //options: 'regular', 'setback', 'moment', 'milestone'. Probab...
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
MethodDeclaration
addEventType(eventType:string) { this.eventType = eventType; }
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
MethodDeclaration
addPictures(photos:PhotoData[]) { this.photos = photos; this._timestamp = moment().startOf('year');//Won't work if spanning multiple years photos.forEach((photo) => { this._timestamp = moment.max(this.timestamp, photo.timestamp); }); //console.log(this.timestampStr);...
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
MethodDeclaration
addMinutesWorked(minutes:number) { this.minutesWorked = minutes; }
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
MethodDeclaration
addRun(run:RunningData) { this.run = run; this.title = this.run.title; this.textDescription = this.run.description; this._timestamp = this.run.timestamp; }
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
MethodDeclaration
addTextDescription(textDescription:string) { this.textDescription = textDescription; }
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
MethodDeclaration
addDate(date:string) { this._timestamp = moment(date); }
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
MethodDeclaration
addExpenses(expenses:number) { this.expenses = expenses; }
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
MethodDeclaration
addEmotion(emotion:string) { this.emotion = emotion; }
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
MethodDeclaration
addTitle(title:string) { this.title = title; }
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
MethodDeclaration
setImportance(importance:boolean) { this.isImportant = importance; }
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
MethodDeclaration
setPublic(isPublic:boolean) { this.isPublic = isPublic; }
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
MethodDeclaration
//TODO: design the code betterer so I don't have to include an if statement in places like these. getMessage() { let message:string =this.textDescription === null ? "" : this.textDescription + "\n\n" //DIY chapter? if(this.chapterType == 'diy') { return message + "Worked " + this.min...
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
MethodDeclaration
getImages():string|string[] { if(this.chapterType == 'diy') { return this.photos.map((photo:PhotoData) => {return photo.pictureURL;}); } else { return this.run.staticMapFull; } }
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
MethodDeclaration
getUrl() { //TODO: publicly accessible URLs! return null; }
depstein/storytelling_public
src/models/chapter-data.ts
TypeScript
ClassDeclaration
@NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class SalesRoutingModule {}
Nirmalya247/wirehouse
src/app/views/sales/sales-routing.module.ts
TypeScript
ClassDeclaration
export declare class SMModalDirective { data: any; onClick(): void; }
vladotesanovic/angular2-cordova
com.vlado.angular2cordova/www/js/vendor/ng-semantic/ng-semantic/modal/modal.d.ts
TypeScript
ClassDeclaration
export declare class SemanticModal { selector: string; title: string; class: string; }
vladotesanovic/angular2-cordova
com.vlado.angular2cordova/www/js/vendor/ng-semantic/ng-semantic/modal/modal.d.ts
TypeScript
ArrowFunction
({ user }: RootStateT) => user.ui.signIn.email
AyushDubey-maker/money-tracker
src/features/user/state/ui/SignIn.selector.ts
TypeScript
ArrowFunction
({ user }: RootStateT) => user.ui.signIn.code
AyushDubey-maker/money-tracker
src/features/user/state/ui/SignIn.selector.ts
TypeScript
ClassDeclaration
@Entity('user_details') export class UserDetails extends BaseEntity { @PrimaryGeneratedColumn('increment') id: number; @Column({ type: 'varchar', length: 50, nullable: true }) name: string; @Column({ type: 'varchar', nullable: true }) lastname: string; @Column({ type: 'varchar', default: 'ACTIVE', len...
FrontEnd2Eyeline/bookstore-nestjs
src/modules/user/user.details.entity.ts
TypeScript
ArrowFunction
(props: HeaderProps): JSX.Element => { const [drawerOpen, setDrawerOpen] = React.useState<boolean>(false); const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null); const handlePopoverOpen = (event: React.MouseEvent<HTMLElement>): void => { setAnchorEl(event.currentTarget); }; const han...
kaushalmeena/myapp-mapmysensor
client/components/common/Header.tsx
TypeScript
ArrowFunction
(event: React.MouseEvent<HTMLElement>): void => { setAnchorEl(event.currentTarget); }
kaushalmeena/myapp-mapmysensor
client/components/common/Header.tsx
TypeScript
ArrowFunction
(): void => { setAnchorEl(null); }
kaushalmeena/myapp-mapmysensor
client/components/common/Header.tsx
TypeScript
ArrowFunction
(): void => { setDrawerOpen(true); }
kaushalmeena/myapp-mapmysensor
client/components/common/Header.tsx
TypeScript
ArrowFunction
(): void => { setDrawerOpen(false); }
kaushalmeena/myapp-mapmysensor
client/components/common/Header.tsx
TypeScript
ArrowFunction
(link) => ( <NextLink key={`link-${link.title}`
kaushalmeena/myapp-mapmysensor
client/components/common/Header.tsx
TypeScript
TypeAliasDeclaration
type HeaderProps = { pageTitle: string; };
kaushalmeena/myapp-mapmysensor
client/components/common/Header.tsx
TypeScript
FunctionDeclaration
export declare function isTreeParentPropertyAst(val: PropertyAst): val is PropertyAst<TreeParent>;
meepobrother/nger
dist/nger-core/lib/orm/tree/TreeParent.d.ts
TypeScript
ClassDeclaration
export declare class TreeParentPropertyAst extends PropertyContext<TreeParent> { }
meepobrother/nger
dist/nger-core/lib/orm/tree/TreeParent.d.ts
TypeScript
InterfaceDeclaration
export interface TreeParent { }
meepobrother/nger
dist/nger-core/lib/orm/tree/TreeParent.d.ts
TypeScript
ArrowFunction
(selectedTimelines: number) => i18n.translate('xpack.siem.open.timeline.selectedTimelinesTitle', { values: { selectedTimelines }, defaultMessage: 'Selected {selectedTimelines} {selectedTimelines, plural, =1 {timeline} other {timelines}}', })
AlexCornigeanu/kibana
x-pack/legacy/plugins/siem/public/components/open_timeline/translations.ts
TypeScript
ArrowFunction
(totalTimelines: number) => i18n.translate('xpack.siem.open.timeline.successfullyExportedTimelinesTitle', { values: { totalTimelines }, defaultMessage: 'Successfully exported {totalTimelines, plural, =0 {all timelines} =1 {{totalTimelines} timeline} other {{totalTimelines} timelines}}', })
AlexCornigeanu/kibana
x-pack/legacy/plugins/siem/public/components/open_timeline/translations.ts
TypeScript
ArrowFunction
(totalCount: number) => i18n.translate( 'xpack.siem.timelines.components.importTimelineModal.successfullyImportedTimelinesTitle', { values: { totalCount }, defaultMessage: 'Successfully imported {totalCount} {totalCount, plural, =1 {timeline} other {timelines}}', } )
AlexCornigeanu/kibana
x-pack/legacy/plugins/siem/public/components/open_timeline/translations.ts
TypeScript
ArrowFunction
(id: string, statusCode: number, message: string) => i18n.translate('xpack.siem.timelines.components.importTimelineModal.importFailedDetailedTitle', { values: { id, statusCode, message }, defaultMessage: 'Timeline ID: {id}\n Status Code: {statusCode}\n Message: {message}', })
AlexCornigeanu/kibana
x-pack/legacy/plugins/siem/public/components/open_timeline/translations.ts
TypeScript
InterfaceDeclaration
export interface MenuCallbackArgs { /** Cell or column index */ cell?: number; /** Row index */ row?: number; /** Reference to the grid. */ grid: any; /** Cell Column definition */ column: Column; /** Cell Data Context(data object) */ dataContext?: any; }
NirmalGit/Angular-Slickgrid
src/app/modules/angular-slickgrid/models/menuCallbackArgs.interface.ts
TypeScript
FunctionDeclaration
function requireModule(name: string) { const dependency = System.get(name); if (!dependency) { const error = new Error(`Cannot find module '${name}'`); (error as any).code = 'MODULE_NOT_FOUND'; throw error; } return dependency; }
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
FunctionDeclaration
function checkPiletApp(name: string, app?: PiletApp): PiletApp { if (!app) { console.error('Invalid module found.', name); } else if (typeof app.setup !== 'function') { console.warn('Setup function is missing.', name); } else { return app; } return { setup() {}, }; }
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
FunctionDeclaration
function checkPiletAppAsync(name: string, app?: PiletApp | Promise<PiletApp>): Promise<PiletApp> { return Promise.resolve(app).then((resolvedApp) => checkPiletApp(name, resolvedApp)); }
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
FunctionDeclaration
/** * Compiles the given content from a generic dependency. * @param name The name of the dependency to compile. * @param content The content of the dependency to compile. * @param link The optional link to the dependency. * @returns The evaluated dependency. */ export function evalDependency(name: string, conten...
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
FunctionDeclaration
/** * Compiles the given content from a module with a dependency resolution. * @param name The name of the dependency to compile. * @param content The content of the dependency to compile. * @param link The optional link to the dependency. * @returns The evaluated module. */ export function compileDependency(name...
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
FunctionDeclaration
function includeScript(piletName: string, depName: string, link: string, integrity?: string, crossOrigin?: string) { window[depName] = requireModule; return includeScriptDependency(link, integrity, crossOrigin).then( (s) => checkPiletAppAsync(piletName, s.app), () => checkPiletApp(piletName), ); }
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
FunctionDeclaration
/** * Includes a dependency as a script. * @param link The link to the script. * @param integrity The integrity for the script, if any. * @param crossOrigin Defines if cross-origin should be used. * @returns The script element. */ export function includeScriptDependency(link: string, integrity?: string, crossOrig...
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
FunctionDeclaration
/** * Includes the given single pilet script via its URL with a dependency resolution. * @param meta The meta data of the dependency to include. * @param crossOrigin The override for the cross-origin attribute. * @returns The evaluated module. */ export function includeDependency(meta: PiletMetadataV1, crossOrigin...
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
FunctionDeclaration
/** * Includes the given bundle script via its URL with a dependency resolution. * @param meta The meta data of the dependency to include. * @param crossOrigin The override for the cross-origin attribute. * @returns The evaluated module. */ export function includeBundle(meta: PiletMetadataBundle, crossOrigin?: str...
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
ArrowFunction
(resolvedApp) => checkPiletApp(name, resolvedApp)
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
ArrowFunction
(s) => checkPiletAppAsync(piletName, s.app)
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
ArrowFunction
() => checkPiletApp(piletName)
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
ArrowFunction
(resolve, reject) => { const s = document.createElement('script'); s.async = true; s.src = link; if (integrity) { s.crossOrigin = crossOrigin || 'anonymous'; s.integrity = integrity; } else if (crossOrigin) { s.crossOrigin = crossOrigin; } s.onload = () => resolve(s); ...
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
ArrowFunction
() => resolve(s)
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
ArrowFunction
() => reject()
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
InterfaceDeclaration
interface HTMLScriptElement { app?: PiletApp; }
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
MethodDeclaration
setup() {}
carvinlo/piral
src/framework/piral-base/src/dependency.ts
TypeScript
ArrowFunction
test => { let result: CaseStylesRecord, textInput: string test('provides all case styles of a given text input', ({ given, when, then }) => { given(/^I have a text input '(.*)'$/, (input: string) => { textInput = input }) when('I request its casestyles', _ => { result = case...
lktslionel/case-styles
tests/functional/index.steps.ts
TypeScript
ArrowFunction
({ given, when, then }) => { given(/^I have a text input '(.*)'$/, (input: string) => { textInput = input }) when('I request its casestyles', _ => { result = caseStylesFor(textInput) }) then( 'I should get the all supported case styles for that text input', (...
lktslionel/case-styles
tests/functional/index.steps.ts
TypeScript
ArrowFunction
(input: string) => { textInput = input }
lktslionel/case-styles
tests/functional/index.steps.ts
TypeScript
ArrowFunction
_ => { result = caseStylesFor(textInput) }
lktslionel/case-styles
tests/functional/index.steps.ts
TypeScript
ArrowFunction
(entries: TableEntries) => { const supportedCaseStyles: string[] = Object.values(SupportedCaseStyles) const castestyleEntries = entries.map( (entry: TableEntry) => entry.casestyle ) const expectedEntries = entries.map( (entry: TableEntry) => entry.expected )...
lktslionel/case-styles
tests/functional/index.steps.ts
TypeScript
ArrowFunction
(entry: TableEntry) => entry.casestyle
lktslionel/case-styles
tests/functional/index.steps.ts
TypeScript
ArrowFunction
(entry: TableEntry) => entry.expected
lktslionel/case-styles
tests/functional/index.steps.ts
TypeScript
ArrowFunction
(casestyle: string) => { if (!supportedCaseStyles.includes(casestyle)) { fail(`Case style[${casestyle}] is not supported.`) } }
lktslionel/case-styles
tests/functional/index.steps.ts
TypeScript
ArrowFunction
(entry: TableEntry) => { expect(result).toHaveProperty(entry.casestyle, entry.expected) }
lktslionel/case-styles
tests/functional/index.steps.ts
TypeScript
InterfaceDeclaration
interface TableEntry { readonly casestyle: string readonly expected: string }
lktslionel/case-styles
tests/functional/index.steps.ts
TypeScript
TypeAliasDeclaration
type TableEntries = TableEntry[]
lktslionel/case-styles
tests/functional/index.steps.ts
TypeScript
ArrowFunction
() => { it('can be created from two identities', () => { expect(typeof link.hash).toBe('string') }) it('creates valid link signatures', () => { expect(validateChainedCertificate(testIdentity.address, [link, signedByChild])).toBe(true) }) it('validates correctly through a chain of signatures', () =>...
eordano/explorer
decentraland/c1-basics/ChainedCertificate.spec.ts
TypeScript
ArrowFunction
() => { expect(typeof link.hash).toBe('string') }
eordano/explorer
decentraland/c1-basics/ChainedCertificate.spec.ts
TypeScript
ArrowFunction
() => { expect(validateChainedCertificate(testIdentity.address, [link, signedByChild])).toBe(true) }
eordano/explorer
decentraland/c1-basics/ChainedCertificate.spec.ts
TypeScript
ArrowFunction
() => { expect(validateChainedCertificate(testIdentity.address, [link, link2, signedByThirdChild])).toBe(true) }
eordano/explorer
decentraland/c1-basics/ChainedCertificate.spec.ts
TypeScript
ArrowFunction
() => { const fakeLink = { ...link, hash: '' } expect(chainSignatureError(testIdentity.address, [fakeLink, link2, signedByChild])).toContain( 'Invalid signature for message: ' ) }
eordano/explorer
decentraland/c1-basics/ChainedCertificate.spec.ts
TypeScript
ArrowFunction
() => { expect(chainSignatureError(testIdentity.address, [link, link2, signedByChild])).toContain( 'Signing address mismatch: Expected signature from' ) }
eordano/explorer
decentraland/c1-basics/ChainedCertificate.spec.ts
TypeScript
ArrowFunction
() => { expect(chainSignatureError(testIdentity.address, [link2, link, signedByThirdChild])).toContain( 'Signing address mismatch: Expected signature from' ) }
eordano/explorer
decentraland/c1-basics/ChainedCertificate.spec.ts
TypeScript
ArrowFunction
() => { const fakeLink = createSignedMessage(testIdentity, 'Cant{}ParseMe') expect(chainSignatureError(testIdentity.address, [fakeLink, signedByChild])).toContain('Could not parse JSON from ') }
eordano/explorer
decentraland/c1-basics/ChainedCertificate.spec.ts
TypeScript
ArrowFunction
() => { const fakeLink = createSignedMessage(testIdentity, `"You can parse this string"`) expect(chainSignatureError(testIdentity.address, [fakeLink, signedByChild])).toContain('Parsed message') }
eordano/explorer
decentraland/c1-basics/ChainedCertificate.spec.ts
TypeScript
ArrowFunction
() => { const fakeLink = createSignedMessage( testIdentity, jsonStringify({ type: 'Not Chained Address', childAddress: secondTestIdentity.address }) ) expect(chainSignatureError(testIdentity.address, [fakeLink, signedByChild])).toContain( `Type of certificate link No...
eordano/explorer
decentraland/c1-basics/ChainedCertificate.spec.ts
TypeScript
ArrowFunction
() => { const fakeLink = createSignedMessage( testIdentity, jsonStringify({ type: CHAINED_ADDRESS, childAddress: 'Invalid address' }) ) expect(chainSignatureError(testIdentity.address, [fakeLink, signedByChild])).toContain(`Invalid chained address: `) }
eordano/explorer
decentraland/c1-basics/ChainedCertificate.spec.ts
TypeScript
ClassDeclaration
@Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { constructor(private service: AppService) { } }
b-mi/covid-19-charts-slovakia
src/app/app.component.ts
TypeScript
ArrowFunction
() => { this.isSearchingByName = true; this.isFilteringByCategory = false; this.isSortingByName = false; console.log(this.currentSearchByNameValue); if (this.currentSearchByNameValue !== '') { this.customerStore.initSearchByNameData( this.currentSearchByNameValue, ...
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
(row) => { console.log(row); }
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
(result: boolean) => { if (result) { this.customerHTTP .deleteSelectedCustomers(this.selectedRows) .toPromise() .then(() => { this.store.showNotif( `${this.selectedRows.length} items deleted`, 'custom' ); ...
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
() => { this.store.showNotif( `${this.selectedRows.length} items deleted`, 'custom' ); this.clearSelection(); switch (editorMode) { case 'NORMAL': this.customerStore.initData( t...
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
() => { this.store.setIsLoading(false); }
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
(result: boolean) => { if (result) { this.isFilteringByCategory = false; this.store.setIsLoading(true); this.customerHTTP .generateRandomCustomer() .toPromise() .then(() => { this.customerStore.initData( this.dataGr...
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
() => { this.customerStore.initData( this.dataGrid.instance.pageIndex(), this.pageSize ); }
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
() => { this.store.setIsLoading(false); this.store.showNotif('Generated 10 random items', 'custom'); }
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
(result: boolean) => { if (result) { this.store.setIsLoading(true); this.customerHTTP .fetchAll() .toPromise() .then((data: any) => { this.customerStore.setExportData(data); console.log(data); setTimeout(() => { ...
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
(data: any) => { this.customerStore.setExportData(data); console.log(data); setTimeout(() => { const workbook = new ExcelJS.Workbook(); const worksheet = workbook.addWorksheet('Customer List'); exportDataGridToExcel({ ...
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
() => { const workbook = new ExcelJS.Workbook(); const worksheet = workbook.addWorksheet('Customer List'); exportDataGridToExcel({ component: this.dataGrid.instance, worksheet: worksheet, autoFilterEnabled: true, ...
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
() => { workbook.xlsx.writeBuffer().then((buffer) => { saveAs( new Blob([buffer], { type: 'application/octet-stream' }), 'Customer_List.xlsx' ); this.store.setIsLoading(false); ...
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
(buffer) => { saveAs( new Blob([buffer], { type: 'application/octet-stream' }), 'Customer_List.xlsx' ); this.store.setIsLoading(false); this.store.showNotif('Export succesully', 'custom'); ...
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
(result: boolean) => { if (result) { this.store.setIsLoading(true); this.customerHTTP .fetchAll() .toPromise() .then((data: any) => { this.customerStore.setExportData(data); console.log(data); setTimeout(() => { ...
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
(data: any) => { this.customerStore.setExportData(data); console.log(data); setTimeout(() => { const doc = new jsPDF(); exportDataGridToPdf({ jsPDFDocument: doc, component: this.dataGrid.instance, ...
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
() => { const doc = new jsPDF(); exportDataGridToPdf({ jsPDFDocument: doc, component: this.dataGrid.instance, }).then(() => { doc.save('Customer_List.pdf'); this.store.setIsLoading(false); ...
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
() => { doc.save('Customer_List.pdf'); this.store.setIsLoading(false); this.store.showNotif('Export succesully', 'custom'); }
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
(data: any) => { this.customerList = data; }
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
(data: any) => { this.currentIndexFromServer = data; }
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
ArrowFunction
() => { this.onRefresh(); }
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
MethodDeclaration
onToolbarPreparing(e: any) { e.toolbarOptions.items.unshift( { location: 'before', template: 'totalCustomerCount', }, { location: 'after', locateInMenu: 'auto', widget: 'dxButton', options: { type: 'normal', icon: 'refresh', ...
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
MethodDeclaration
onSearchKeyupHandler(e: any) { clearTimeout(this.timeout); this.timeout = setTimeout(() => { this.isSearchingByName = true; this.isFilteringByCategory = false; this.isSortingByName = false; console.log(this.currentSearchByNameValue); if (this.currentSearchByNameValue !== '') { ...
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript
MethodDeclaration
onSearchValueChanged(e: any) { this.currentSearchByNameValue = e.value; }
b1506704/ng-health-care-demo
client/src/app/pages/admin/edit-customer-list/edit-customer-list.component.ts
TypeScript