From c68689db416609528cf0f9e84fc67b74e0d6ff3e Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 8 Jan 2017 16:46:32 +0200 Subject: [PATCH] Testing typeahead custom suggestion --- resources/views/invoices/knockout.blade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/views/invoices/knockout.blade.php b/resources/views/invoices/knockout.blade.php index 64fe633ba5d5..bb9f3d96feaf 100644 --- a/resources/views/invoices/knockout.blade.php +++ b/resources/views/invoices/knockout.blade.php @@ -890,6 +890,9 @@ ko.bindingHandlers.productTypeahead = { name: 'data', display: allBindings.key, limit: 50, + //templates: { + // suggestion: function(item) { return '
' + item.product_key + '
' + item.cost + '
' } + //}, source: searchData(allBindings.items, allBindings.key) }).on('typeahead:select', function(element, datum, name) { @if (Auth::user()->account->fill_products)