Add option ajax.delay into Select2 select_advanced & taxonomy

Support MB Builder Add option ajax.delay into Select2 select_advanced & taxonomy

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40966
    justdoit123justdoit123
    Participant

    Hi, how do i add this option into metabox Select2 select_advanced & taxonomy ?

    i tried to add in code php but no luck :

                    'required' => true,
                    'columns'     => 4,
                    'ajax'       => true,
                    'ajax.delay' => 5000,
                        'query_args' => [
                            'number' => 80,  // 1 per page
                        ],
                       'js_options' => [
                            'minimumInputLength' => 2,
                        ], 
    $('#mySelect2').select2({
      ajax: {
        delay: 250 // wait 250 milliseconds before triggering the request
      }
    });
    #40983
    PeterPeter
    Moderator

    Hello,

    I'm asking the development team if there is a way to use the ajax delay with an object field (post/term) and get back to you later.

    Thanks.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.