|
210 | 210 | /**
|
211 | 211 | * Set the default language source for all datatables
|
212 | 212 | * @param sLanguageSource the language source
|
213 |
| - * @return {$DTDefaultOption} the default option config |
| 213 | + * @returns {$DTDefaultOption} the default option config |
214 | 214 | */
|
215 | 215 | this.setLanguageSource = function (sLanguageSource) {
|
216 | 216 | $.extend($.fn.dataTable.defaults, { oLanguage: { sUrl: sLanguageSource } });
|
|
219 | 219 | /**
|
220 | 220 | * Set the default number of items to display for all datatables
|
221 | 221 | * @param iDisplayLength the number of items to display
|
222 |
| - * @return {$DTDefaultOption} the default option config |
| 222 | + * @returns {$DTDefaultOption} the default option config |
223 | 223 | */
|
224 | 224 | this.setDisplayLength = function (iDisplayLength) {
|
225 | 225 | $.extend($.fn.dataTable.defaults, { iDisplayLength: iDisplayLength });
|
|
243 | 243 | this.obj = obj;
|
244 | 244 | /**
|
245 | 245 | * Check if the wrapped object is defined
|
246 |
| - * @return true if the wrapped object is defined, false otherwise |
| 246 | + * @returns true if the wrapped object is defined, false otherwise |
247 | 247 | */
|
248 | 248 | this.isPresent = function () {
|
249 | 249 | return angular.isDefined(this.obj) && this.obj !== null;
|
250 | 250 | };
|
251 | 251 | /**
|
252 | 252 | * Return the wrapped object or an empty object
|
253 |
| - * @return the wrapped objector an empty object |
| 253 | + * @returns the wrapped objector an empty object |
254 | 254 | */
|
255 | 255 | this.orEmptyObj = function () {
|
256 | 256 | if (this.isPresent()) {
|
|
260 | 260 | };
|
261 | 261 | /**
|
262 | 262 | * Return the wrapped object or the given second choice
|
263 |
| - * @return the wrapped object or the given second choice |
| 263 | + * @returns the wrapped object or the given second choice |
264 | 264 | */
|
265 | 265 | this.or = function (secondChoice) {
|
266 | 266 | if (this.isPresent()) {
|
|
272 | 272 | /**
|
273 | 273 | * Wrap the given objec
|
274 | 274 | * @param obj the object to wrap
|
275 |
| - * @return {Optional} the optional of the wrapped object |
| 275 | + * @returns {Optional} the optional of the wrapped object |
276 | 276 | */
|
277 | 277 | var fromNullable = function (obj) {
|
278 | 278 | return new Optional(obj);
|
|
281 | 281 | * Add the option to the datatables optoins
|
282 | 282 | * @param key the key of the option
|
283 | 283 | * @param value an object or a function of the option
|
284 |
| - * @return {DTOption} the options |
| 284 | + * @returns {DTOptions} the options |
285 | 285 | */
|
286 | 286 | this.withOption = function (key, value) {
|
287 | 287 | if (angular.isString(key)) {
|
|
293 | 293 | * Add the Ajax source to the options.
|
294 | 294 | * This corresponds to the "sAjaxSource" option
|
295 | 295 | * @param sAjaxSource the ajax source
|
296 |
| - * @return {DTOption} the options |
| 296 | + * @returns {DTOptions} the options |
297 | 297 | */
|
298 | 298 | this.withSource = function (sAjaxSource) {
|
299 | 299 | this.sAjaxSource = sAjaxSource;
|
|
302 | 302 | /**
|
303 | 303 | * Add the ajax data properties.
|
304 | 304 | * @param sAjaxDataProp the ajax data property
|
305 |
| - * @return {DTOption} the options |
| 305 | + * @returns {DTOptions} the options |
306 | 306 | */
|
307 | 307 | this.withDataProp = function (sAjaxDataProp) {
|
308 | 308 | this.sAjaxDataProp = sAjaxDataProp;
|
|
311 | 311 | /**
|
312 | 312 | * Set the server data function.
|
313 | 313 | * @param fn the function of the server retrieval
|
314 |
| - * @return {DTOption} the options |
| 314 | + * @returns {DTOptions} the options |
315 | 315 | */
|
316 | 316 | this.withFnServerData = function (fn) {
|
317 | 317 | if (!angular.isFunction(fn)) {
|
|
323 | 323 | /**
|
324 | 324 | * Set the pagination type.
|
325 | 325 | * @param sPaginationType the pagination type
|
326 |
| - * @return {DTOption} the options |
| 326 | + * @returns {DTOptions} the options |
327 | 327 | */
|
328 | 328 | this.withPaginationType = function (sPaginationType) {
|
329 | 329 | if (angular.isString(sPaginationType)) {
|
|
336 | 336 | /**
|
337 | 337 | * Set the language of the datatables
|
338 | 338 | * @param oLanguage the language
|
339 |
| - * @return {DTOption} the options |
| 339 | + * @returns {DTOptions} the options |
340 | 340 | */
|
341 | 341 | this.withLanguage = function (oLanguage) {
|
342 | 342 | this.oLanguage = oLanguage;
|
|
345 | 345 | /**
|
346 | 346 | * Set the language source
|
347 | 347 | * @param sLanguageSource the language source
|
348 |
| - * @return {DTOption} the options |
| 348 | + * @returns {DTOptions} the options |
349 | 349 | */
|
350 | 350 | this.withLanguageSource = function (sLanguageSource) {
|
351 | 351 | return this.withLanguage({ sUrl: sLanguageSource });
|
352 | 352 | };
|
353 | 353 | /**
|
354 | 354 | * Set default number of items per page to display
|
355 | 355 | * @param iDisplayLength the number of items per page
|
356 |
| - * @return {DTOption} the options |
| 356 | + * @returns {DTOptions} the options |
357 | 357 | */
|
358 | 358 | this.withDisplayLength = function (iDisplayLength) {
|
359 | 359 | this.iDisplayLength = iDisplayLength;
|
|
363 | 363 | // See http://getbootstrap.com
|
364 | 364 | /**
|
365 | 365 | * Add bootstrap compatibility
|
366 |
| - * @return {DTOption} the options |
| 366 | + * @returns {DTOptions} the options |
367 | 367 | */
|
368 | 368 | this.withBootstrap = function () {
|
369 | 369 | $DTBootstrap.integrate(this);
|
|
386 | 386 | };
|
387 | 387 | /**
|
388 | 388 | * Add colReorder compatibility
|
389 |
| - * @return {DTOption} the options |
| 389 | + * @returns {DTOptions} the options |
390 | 390 | */
|
391 | 391 | this.withColReorder = function () {
|
392 | 392 | var colReorderPrefix = 'R';
|
|
396 | 396 | /**
|
397 | 397 | * Set the default column order
|
398 | 398 | * @param aiOrder the column order
|
399 |
| - * @return {DTOption} the options |
| 399 | + * @returns {DTOptions} the options |
400 | 400 | */
|
401 | 401 | this.withColOrder = function (aiOrder) {
|
402 | 402 | if (angular.isArray(aiOrder)) {
|
|
410 | 410 | /**
|
411 | 411 | * Set the reorder callback function
|
412 | 412 | * @param fnReorderCallback
|
413 |
| - * @return {DTOptions} the options |
| 413 | + * @returns {DTOptions} the options |
414 | 414 | */
|
415 | 415 | this.withReorderCallback = function (fnReorderCallback) {
|
416 | 416 | if (angular.isFunction(fnReorderCallback)) {
|
|
427 | 427 | * Add option to "oColVis" option
|
428 | 428 | * @param key the key of the option to add
|
429 | 429 | * @param value an object or a function of the function
|
430 |
| - * @param {DTOption} the options |
| 430 | + * @returns {DTOptions} the options |
431 | 431 | */
|
432 | 432 | this.withColVisOption = function (key, value) {
|
433 | 433 | if (angular.isString(key)) {
|
|
438 | 438 | };
|
439 | 439 | /**
|
440 | 440 | * Add colVis compatibility
|
441 |
| - * @return {DTOption} the options |
| 441 | + * @returns {DTOptions} the options |
442 | 442 | */
|
443 | 443 | this.withColVis = function () {
|
444 | 444 | var colVisPrefix = 'C<"clear">';
|
|
471 | 471 | * Add the option of the column
|
472 | 472 | * @param key the key of the option
|
473 | 473 | * @param value an object or a function of the option
|
474 |
| - * @return {DTColumn} the wrapped datatables column |
| 474 | + * @returns {DTColumn} the wrapped datatables column |
475 | 475 | */
|
476 | 476 | this.withOption = function (key, value) {
|
477 | 477 | if (angular.isString(key)) {
|
|
482 | 482 | /**
|
483 | 483 | * Set the label of the colum
|
484 | 484 | * @param label the label of the column
|
485 |
| - * @return {DTColumn} the wrapped datatables column |
| 485 | + * @returns {DTColumn} the wrapped datatables column |
486 | 486 | */
|
487 | 487 | this.withLabel = function (label) {
|
488 | 488 | this.label = label;
|
|
491 | 491 | /**
|
492 | 492 | * Set the CSS class of the column
|
493 | 493 | * @param sClass the CSS class
|
494 |
| - * @return {DTColumn} the wrapped datatables column |
| 494 | + * @returns {DTColumn} the wrapped datatables column |
495 | 495 | */
|
496 | 496 | this.withClass = function (sClass) {
|
497 | 497 | this.sClass = sClass;
|
498 | 498 | return this;
|
499 | 499 | };
|
500 | 500 | /**
|
501 | 501 | * Hide the column
|
502 |
| - * @return {DTColumn} the wrapped datatables column |
| 502 | + * @returns {DTColumn} the wrapped datatables column |
503 | 503 | */
|
504 | 504 | this.notVisible = function () {
|
505 | 505 | this.bVisible = false;
|
506 | 506 | return this;
|
507 | 507 | };
|
508 | 508 | /**
|
509 | 509 | * Set the column as not sortable
|
510 |
| - * @return {DTColumn} the wrapped datatables column |
| 510 | + * @returns {DTColumn} the wrapped datatables column |
511 | 511 | */
|
512 | 512 | this.notSortable = function () {
|
513 | 513 | this.bSortable = false;
|
|
516 | 516 | /**
|
517 | 517 | * Render each cell with the given parameter
|
518 | 518 | * @mRender mRender the function/string to render the data
|
519 |
| - * @return {DTColumn} the wrapped datatables column |
| 519 | + * @returns {DTColumn} the wrapped datatables column |
520 | 520 | */
|
521 | 521 | this.renderWith = function (mRender) {
|
522 | 522 | this.mRender = mRender;
|
|
0 commit comments