Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to show a custom component #540

Open
alexdonei opened this issue Apr 16, 2020 · 1 comment
Open

Unable to show a custom component #540

alexdonei opened this issue Apr 16, 2020 · 1 comment

Comments

@alexdonei
Copy link

Hi,
in a App with version 6.7 I added several custom components with the syntax:
<span #extitem>

Now with 7.2 release I can add a custom components without ExtJS elements, but I'm not able to add a custom component with a ExtContainer and a ExtTreelist (If I add Container and Treelist directly to the main layout I see them)
<ExtContainer [viewport]="true" layout="fit" fitToParent="true">
<ExtPanel [docked]="'top'" [border]="true">
<span #extitem>
(a component Angular, without ExtJS Elements, -> works)


<ExtPanel [docked]="'left'" [width]="325" [border]="true" layout="fit">
<span #extitem>
(a component Angular, with ExtJS Elements, -> not works)


@gilbertoximenes
Copy link

Hi,
I have the same problem and contacted support. They told me this is a bug and opended a ticket.
I'm extendidng my angular components from a custom Ext base class.

import { ɵbk } from '@sencha/ext-angular-classic'; //Public name of ExtContainer

@Component({
    selector: "ExtXceCustomBase",
    template: ""
})
export class ExtXceCustomBase extends ɵbk {
  public ngOnInit() {
    super.ngOnInit();
  }
}

Example of use:

@Component({
    selector: "ExtMyCustom", //selector must start with EXT
    template: ""
})
export class ExtMyCustomComponent extends ExtXceCustomBase {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants