| | |
| | <script type="text/javascript"> |
| | - $(document).ready( function() { $("div.columns").millerColumns(); }); |
| | + $(document).ready( function() { |
| | + $("div.columns").millerColumns({ |
| | + current: function( $item ) { |
| | + console.log( "User selected: " + $item.text() ); |
| | + } |
| | + }); |
| | + }); |
| | </script> |
| | ``` |
| | + |
| | +The `current` function is called when the user selects an item. The $item |
| | +parameter is the item that the user selected. If the user presses the Escape |
| | +key (or otherwise deselects all items), then $item will be `undefined`. |
| | |
| | Body: |