Skip to content

Instantly share code, notes, and snippets.

rendom

Block or report user

Report or block rendom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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
@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";
You can’t perform that action at this time.