Skip to content

Instantly share code, notes, and snippets.

View rendom's full-sized avatar

rendom

  • Sweden
View GitHub Profile
@rendom
rendom / gist:1d85fe3ecb1476832ea7
Created September 8, 2014 15:30
Bootstrap 3 Typeahead, using objects.
function getData(callback){
// Cache & Ajax logix
callback([{id:1, name:'foo', text: 'huhu'}, {id:1, name:'baar', text: 'Lorem ipsum dolor sit amet.'}]);
}
$seleceted = $(".selected");
$('.input').typeahead({
minLength: 0,
render: function (items) {
console.log(items);
// Ignore selected values
@rendom
rendom / Semanitc-ui imports
Last active December 25, 2015 00:49
semantic-ui less imports
@semantic-ui-path: "../../../vendor/semantic/ui/build/less/";
/* Collections */
@import "@{semantic-ui-path}collections/breadcrumb.less";
@import "@{semantic-ui-path}collections/form.less";
@import "@{semantic-ui-path}collections/grid.less";
@import "@{semantic-ui-path}collections/menu.less";
@import "@{semantic-ui-path}collections/message.less";
@import "@{semantic-ui-path}collections/table.less";