Delete all buttons in a collection of buttons

Delete all buttons in a collection of buttons

hanshandlampehanshandlampe Posts: 2Questions: 1Answers: 0

I would like to delete the buttons MISSING and NEW without addressing it separately. Is there anything like removeAll()?

buttons: [
    {
        extend: 'collection',
        autoClose: true,
        text: 'Status',
        buttons: [
            {
                text: 'MISSING',
                className: 'active',
                attr: {id: 'statusBtnMissing'}
            },
            {
                text: 'NEW',
                attr: {id: 'statusBtnNew'},
            }
        ]
    },
],

This question has an accepted answers - jump to answer

Answers

Sign In or Register to comment.