How to use @tinkoff/ng-polymorpheus - 1 common examples

To help you get started, we’ve selected a few @tinkoff/ng-polymorpheus examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TinkoffCreditSystems / ng-polymorpheus / projects / demo / src / app / modules / tabsDemo / tabsDemo.component.ts View on Github external
readonly items = ['Search for Holy Grail', 'Run away!', 'Taunt a second time'];

    readonly example = {
        HTML: html,
        Style: css,
        TypeScript: typescript,
    };

    readonly anotherExample = {
        HTML: html2,
        Style: css2,
        TypeScript: typescript2,
    };

    readonly content = new PolymorpheusComponent(TabComponent);

    activeTabTab: 'HTML' | 'Style' | 'TypeScript' = 'HTML';

    customTabs: ReadonlyArray | null = null;

    get tabCode(): string {
        const code: any = this.anotherExample[this.activeTabTab];

        return typeof code === 'string' ? code : code.default;
    }

    getTabs(content: PolymorpheusContent): ReadonlyArray {
        const customTabs = [
            {
                text: 'Alex Inkin',
                content,

@tinkoff/ng-polymorpheus

This is a tiny library for customizing components appearance

Apache-2.0
Latest version published 5 months ago

Package Health Score

81 / 100
Full package analysis

Popular @tinkoff/ng-polymorpheus functions