field().update()

field().update()

Bindrid2Bindrid2 Posts: 79Questions: 4Answers: 12
edited August 2018 in Editor

@allan , shouldn't there be a field().update() listed in the api ( https://editor.datatables.net/reference/api/ ) ?

Replies

  • Bindrid2Bindrid2 Posts: 79Questions: 4Answers: 12

    Nevermind. I see that it has to be implemented by the plug-in.

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    That's correct. The update() method is specified on a per field type basis. In the select field for example it is useful. For text - not so much.

    It is perhaps a bit confusing that I decided that the field types can extend the built in API with their own methods, but I felt that it make the API flow a bit nicer when using it!

    Allan

This discussion has been closed.