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

Not possible to hide delete button on the event editor #4548

Closed
chuckn0rris opened this issue Apr 28, 2022 · 0 comments
Closed

Not possible to hide delete button on the event editor #4548

chuckn0rris opened this issue Apr 28, 2022 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@chuckn0rris
Copy link

chuckn0rris commented Apr 28, 2022

Forum post

In the documentation there is an example here Scheduler.feature.EventEdit#config-editorConfig

const scheduler = new Scheduler({
    features : {
        eventEdit : {
            editorConfig : {
                bbar : {
                    items : {
                        deleteButton : null
                    }
                }
            }
        }
    }
})

This approach works with the scheduler, but not with the calendar. A crash occurs when opening the editor dialogue, and this can be readily reproduced on the basic calendar demo by adding the same eventEdit section within features.

I also tried using deleteButton: { hidden: true } and that made no diffference.

As a workaround we hook beforeEventEditShow and call deleteButton.hide()

@chuckn0rris chuckn0rris added bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer labels Apr 28, 2022
@isglass isglass added this to the 5.x.x milestone Apr 28, 2022
@matsbryntse matsbryntse self-assigned this May 5, 2022
@matsbryntse matsbryntse added the ready for review Issue is fixed, the pull request is being reviewed label May 5, 2022
@matsbryntse matsbryntse modified the milestones: 5.x.x, 5.0.4 May 5, 2022
@matsbryntse matsbryntse 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 May 6, 2022
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 large-account Reported by large customer OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

3 participants