1 | import { IHtmlEngineHelper, IHandlebarsOptions } from './html-engine-helper.interface';
|
2 |
|
3 | export class IsInitialTabHelper implements IHtmlEngineHelper {
|
4 | public helperFunc(context: any, tabs: Array<any>, tabId: String, options: IHandlebarsOptions) {
|
5 | return tabs[0].id === tabId ? options.fn(context) : options.inverse(context);
|
6 | }
|
7 | }
|