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

Panels need to specify host #70

Closed
jameslockman opened this issue May 16, 2023 · 1 comment
Closed

Panels need to specify host #70

jameslockman opened this issue May 16, 2023 · 1 comment

Comments

@jameslockman
Copy link

When creating an extension, it is possible to include multiple panels, which you do in the skeleton (thanks for that!). Since CEP is intended to support multiple host applications, it is common for an extension to include panels that appear only in specific applications but not in others. For instance, we produce an Embedded panel that is tied to the "KBRG" host (Bridge,) while all other applications use a Panel that has no host attribute.

This attribute can be added in cep-config.d.ts, and will need to be parsed by your build command to include the tag in the manifest.

export interface CEP_Panel {
    mainPath: string;
    name: string;
    panelDisplayName?: string | null;
    autoVisible: boolean;
    width?: number;
    height?: number;
    maxWidth?: number;
    maxHeight?: number;
    minWidth?: number;
    minHeight?: number;
    scriptPath?: string;
    type?: CEP_Panel_Type;
    **host?: string;**
    id?: string;
    iconDarkNormal?: string;
    iconNormal?: string;
    iconDarkNormalRollOver?: string;
    iconNormalRollOver?: string;
    parameters?: CEF_Command[];
    startOnEvents?: string[];
}
@justintaylor-dev
Copy link
Contributor

vite-cep-plugin 1.1.2 adds new CEP Hosts and the host property to CEP_Panel so you can specify specific panels for specific hosts.

Update by running yarn add vite-cep-plugin

If you're still having issues feel free to re-open this issue.

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