As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
configdocs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public - Sep 07, 2020 update docs for
npm version
| // Fade in divs consecutively (optional delay) | |
| var delayBetweenEach = 300; | |
| var fadeSpeed = 400; | |
| $(".myDiv").delay(1000).each(function(index) {$(this).delay(delayBetweenEach*index).fadeIn(fadeSpeed);}); |
| /*-------------------------------------------------------------- | |
| Draggable | |
| alternative to jQuery UI’s draggable | |
| based on comments from: http://css-tricks.com/snippets/jquery/draggable-without-jquery-ui/ | |
| usage example: $('.post-thumbnail, article header').draggable(); | |
| --------------------------------------------------------------*/ | |
| (function($) { | |
| if (!jQuery().draggable) { | |
| $.fn.draggable = function() { | |
| this |
| public JsonResult Products(IDataTablesRequest request) | |
| { | |
| // Nothing important here. Just creates some mock data. | |
| var data = ProductFactory.Create(); | |
| // Global filtering. | |
| // Filter is being manually applied due to in-memmory (IEnumerable) data. | |
| // If you want something rather easier, check IEnumerableExtensions Sample. | |
| var filteredData = data.Where(_item => _item.Name.Contains(request.Search.Value)); |
| /// <summary> | |
| /// Enhanced measure string function for PdfSharp Xgraphics | |
| /// wich take to account lineBreaks to calculate the real string | |
| /// height in a rectagle | |
| /// </summary> | |
| /// <param name="gfx"></param> | |
| /// <param name="text">Text to measure</param> | |
| /// <param name="maxWitdh">Maximum allowed width</param> | |
| /// <returns></returns> | |
| public static XSize MeasureStringExact(this XGraphics gfx, string content, XFont font, double maxWidth) |