本文整理汇总了TypeScript中global.PublicInterface类的典型用法代码示例。如果您正苦于以下问题:TypeScript PublicInterface类的具体用法?TypeScript PublicInterface怎么用?TypeScript PublicInterface使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PublicInterface类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: listRetrieved
/**
* @memberof UnscheduledController
* @this UnscheduledController
* @instance
* @method listRetrieved
* @desc Callback function after the list of episodes is retrieved
* @param {Array<Episode>} unscheduledList - array of episode objects
*/
private listRetrieved(unscheduledList: PublicInterface<Episode>[]): void {
// Set the list items
this.unscheduledList.items = unscheduledList;
// Refresh the list
this.unscheduledList.refresh();
// Set to view mode
this.viewItems();
}
示例2: listRetrieved
/**
* @memberof ReportController
* @this ReportController
* @instance
* @method listRetrieved
* @desc Callback function after the list of report data is retrieved
* @param {Array<Series>} reportList - array of series objects
*/
private listRetrieved(reportList: PublicInterface<Series>[]): void {
// Set the list items
this.reportList.items = reportList;
// Refresh the list
this.reportList.refresh();
// Set to view mode
this.viewItems();
}
示例3: viewItems
/**
* @memberof UnscheduledController
* @this UnscheduledController
* @instance
* @method viewItems
* @desc Sets the list to view mode
*/
private viewItems(): void {
// Set the list to view mode
this.unscheduledList.setAction("view");
// Clear the view footer
this.appController.clearFooter();
// Show the view icons next to each list item
$("#list").removeClass();
// Setup the footer
this.footer = {
label: `v${this.appController.db.version}`
};
// Set the view footer
this.appController.setFooter();
}