Testing typeahead custom suggestion
This commit is contained in:
parent
7711d0a456
commit
c68689db41
1 changed files with 3 additions and 0 deletions
|
|
@ -890,6 +890,9 @@ ko.bindingHandlers.productTypeahead = {
|
|||
name: 'data',
|
||||
display: allBindings.key,
|
||||
limit: 50,
|
||||
//templates: {
|
||||
// suggestion: function(item) { return '<div>' + item.product_key + '<div class="pull-right">' + item.cost + '</div>' }
|
||||
//},
|
||||
source: searchData(allBindings.items, allBindings.key)
|
||||
}).on('typeahead:select', function(element, datum, name) {
|
||||
@if (Auth::user()->account->fill_products)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue