I want to adapt a select2 combo

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
bartvertongen
Posts: 6
Joined: 2016-10-17 01:28
Contact:

I want to adapt a select2 combo

Post by bartvertongen » 2017-05-01 02:28

I tried this in hooks City.php , it gives no error but does nothing
I tried it in the header too

case 'tableview+detailview':
$footer='';
$footer='<script>$j(function(){';
$footer.='$j'."('#CTY_CountryCode_container').select2({";
$footer.='minimumInputLength: 1,maximumInputLength: 2,';
$footer.='matcher: function(term, text)';
$footer.='{return text.toUpperCase().indexOf(term.toUpperCase())==0;}';
$footer.='});';
$footer.='});</script>';
break;

Post Reply