Skip to content

Prevent EntityDialog or Panel from Opening when a condition is not met #7304

Discussion options

You must be logged in to vote

try this

protected afterLoadEntity() {
super.afterLoadEntity();

this.onOpen((e) => {
    if (leaveperiodid != 0)
        e.preventDefault();
}, {
    before: true
});

}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by flashyjunior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants