Skip to content

Instantly share code, notes, and snippets.

Avatar

rendom

View GitHub Profile
@rendom
rendom / Semanitc-ui imports
Last active Dec 25, 2015
semantic-ui less imports
View Semanitc-ui 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";
@rendom
rendom / gist:1d85fe3ecb1476832ea7
Created Sep 8, 2014
Bootstrap 3 Typeahead, using objects.
View gist:1d85fe3ecb1476832ea7
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
You can’t perform that action at this time.