Prechádzať zdrojové kódy

FDB Playground - dx suggest (wip)

Vijayakrishnan 3 rokov pred
rodič
commit
d00dac4244

+ 7 - 0
resources/views/app/fdb-pg/fdb-rx.blade.php

@@ -241,6 +241,13 @@
                                 $('[fdb-med-suggest-search]').last().focus();
                             });
                         },
+                        addDx: function() {
+                            this.dx.push({});
+                            Vue.nextTick(() => {
+                                this.initFDBDxSuggest();
+                                $('[fdb-dx-suggest-search]').last().focus();
+                            });
+                        },
                         initFDBRxSuggest: function() {
                             $('[fdb-med-suggest-search]:not([fdb-suggest-initialized])').each(function() {
                                 let elem = $(this);