Skip to content

Instantly share code, notes, and snippets.

@AidasK
AidasK / order-by.js
Last active December 29, 2015 17:19
angular multi sort/order directive, allows sub-ordering with shift click.Works without jquery.
/*global angular */
angular.module('app.directives').directive('appOrderByInit', function () {
return {
scope: true,
controller: ['$scope', '$parse', '$attrs', function ($scope, $parse, $attrs) {
var defaultOrder = $parse($attrs.appOrderDefault)($scope) || [];
/**
* @name $appOrderBy
*/
@AidasK
AidasK / README.txt
Created August 3, 2012 08:43 — forked from i-scorpion/README.txt
Twitter bootstrap fixed table header using jQuery
Here is a simple jQuery plugin to make a table header fixed on top when window is scrolled.
Using the code from twitter bootstrap documentation page, this code is customized for table header.
Create the table with following layout -
<table class="table-fixed-header">
<thead class="header">
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>