Choosing which Autofill Options are available to end user (when using with Editor)

Choosing which Autofill Options are available to end user (when using with Editor)

JonathanTolhurstJonathanTolhurst Posts: 11Questions: 7Answers: 0

When using the Autofill with Editor, the end user gets a choice of:

Fill all cells with <<this text>>
Fill cells horizontally
Fill cells vertically
Cancel

Is it possible to configure so that they are only able to fill cells vertically or cancel?

I was looking at the options:
https://datatables.net/reference/option/#AutoFill

Many Thanks

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    Answer ✓

    Hi,

    Currently what you could do is to delete the fill and vertical fill options:

    delete $.fn.dataTable.AutoFill.actions.fill;
    delete $.fn.dataTable.AutoFill.actions.fillHorizontal;
    

    This just removes them as options that AutoFill can select from.

    There currently isn't a configuration option for this, although that is a good suggestion, thanks!

    Allan

This discussion has been closed.