Browse Source

Trigger searching with minimum input 3 character

pull/1/head
Wahyu Ramadhan 2 years ago
parent
commit
afe71d4289
  1. 2
      edit-mode/function/materialResource.js

2
edit-mode/function/materialResource.js

@ -136,10 +136,10 @@ $(document).ready(function () {
dropdownParent: materialModal, dropdownParent: materialModal,
placeholder: 'Pilih material', placeholder: 'Pilih material',
allowClear: true, allowClear: true,
minimumInputLength: 3,
ajax: { ajax: {
url: `${adwIntegrationUrl}/request-material/get-material-integration`, url: `${adwIntegrationUrl}/request-material/get-material-integration`,
type: "get", type: "get",
delay: 1000,
data: function (params) { data: function (params) {
var query = { var query = {
'name': params.term, 'name': params.term,

Loading…
Cancel
Save