select control initialisation

select control initialisation

LapointeLapointe Posts: 103Questions: 22Answers: 1
edited October 18 in Free community support

@allan
hi all
I'd like to know what is the DataTables\Editor\Options_manualAdd Array [0]
Is it a way to add datas in select options list ?

Thanks

Answers

  • kthorngrenkthorngren Posts: 10,585Questions: 25Answers: 2,409

    Not sure what DataTables\Editor\Options_manualAdd Array [0] is but the field().update() API is used to update the options.

    Kevin

  • LapointeLapointe Posts: 103Questions: 22Answers: 1
    edited October 18

    Hi kevin. :)
    Thanks.
    In fact I'd like to "reload" option list content whith same parameters as defined in the inst:: opts (table, label, id...).
    Actually I do it calling ajax from js, but like to know if there is a way to"reload list content" in php

  • rf1234rf1234 Posts: 1,768Questions: 51Answers: 257

    Actually I do it calling ajax from js, but like to know if there is a way to"reload list content" in php

    That is the way, right? I mean without being called PHP code doesn't get executed.

    You can also use ajax.reload() which will reload the options as well: https://datatables.net/reference/api/ajax.reload()

    Here is a lot more on different ways to retrieve options from the server.
    https://datatables.net/forums/discussion/comment/180097/

Sign In or Register to comment.