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

ExtJS wrapper class in extjsmodern demo crashes #7615

Closed
arcady-zherdev opened this issue Oct 5, 2023 · 0 comments
Closed

ExtJS wrapper class in extjsmodern demo crashes #7615

arcady-zherdev opened this issue Oct 5, 2023 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@arcady-zherdev
Copy link

arcady-zherdev commented Oct 5, 2023

Reported here: https://forum.bryntum.com/viewtopic.php?f=49&t=25842&p=132103

Steps to reproduce:

  1. open Gantt extjsmodern demo
  2. run this code in console
dlg = new Ext.Dialog({
    height: 500,
    width: 500,
    layout: 'fit',
    items: [{
        title: 'Bryntum Gantt',
        rtl,
        xtype: 'ganttpanel',
        flex: 1,
        startDate: new Date(2019, 0, 6),
        project: new bryntum.gantt.ProjectModel({
            autoLoad: true,
            loadUrl: '../_datasets/launch-saas.json'
        }),
        header: {
            items: [{
                xtype: 'spinnerfield',
                label: 'Row height',
                width: '12.5em',
                bind: '{rh}',
                minValue: 20
            }, {
                xtype: 'button',
                iconCls: 'b-fa b-fa-plus',
                text: 'Add Task',
                ui: 'action',
                handler: 'addTask',
                cls: 'b-add-task'
            }]
        },

        viewModel: {
            data: {
                rh: 35
            }
        },
        bind: {
            rowHeight: '{rh}'
        },

        features: {
            taskMenu: {
                // Our items is merged with the provided defaultItems
                // So we add the provided convertToMilestone option.
                items: {
                    convertToMilestone: true
                },
                processItems({ taskRecord, items }) {
                    if (taskRecord.isMilestone) {
                        items.convertToMilestone = false;
                    }
                }
            },
            filter: true,
            dependencyEdit: true,
            timeRanges: {
                showCurrentTimeLine: true
            },
            labels: {
                left: {
                    field: 'name',
                    editor: {
                        type: 'textfield'
                    }
                }
            }
        },

        columns: [
            { type: 'wbs' },
            { type: 'name', width: 250 },
            { type: 'startdate' },
            { type: 'duration' },
            { type: 'percentdone', width: 70 },
            {
                type: 'successor',
                width: 112
            },
            { type: 'schedulingmodecolumn' },
            { type: 'calendar' },
            { type: 'constrainttype' },
            { type: 'constraintdate' },
            {
                type: 'date',
                text: 'Deadline',
                field: 'deadline'
            },
            { type: 'addnew' }
        ]
    }]
}).show()
@arcady-zherdev arcady-zherdev added bug Something isn't working forum Issues from forum labels Oct 5, 2023
@dongryphon dongryphon self-assigned this Oct 6, 2023
@dongryphon dongryphon changed the title ExtJS wrapper crashes ExtJS wrapper class in extjsmodern demo crashes Nov 21, 2023
@dongryphon dongryphon added the ready for review Issue is fixed, the pull request is being reviewed label Nov 21, 2023
@isglass isglass added resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Nov 27, 2023
@isglass isglass added this to the 5.6.3 milestone Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

3 participants