Perseus
    Preparing search index...

    Type Alias PerseusCSProgramWidgetOptions

    Options for the cs-program widget. Embeds a Khan Academy JS program.

    type PerseusCSProgramWidgetOptions = {
        height: number;
        programID: string;
        programType?: any;
        settings: PerseusCSProgramSetting[];
        showButtons: boolean;
        showEditor: boolean;
        static: boolean;
    }
    Index

    Properties

    height: number

    The height of the widget

    programID: string

    The ID of the CS program to embed

    programType?: any

    Deprecated. Always null and sometimes omitted entirely.

    Settings that you add here are available to the program as an object returned by Program.settings()

    showButtons: boolean

    Whether to show the execute buttons

    showEditor: boolean

    If you show the editor, you should use the "full-width" alignment to make room for the width of the editor.

    static: boolean