From 74a61a56558a0bd3acf7d9732916a4fd26fa85b6 Mon Sep 17 00:00:00 2001 From: mamrehn Date: Thu, 6 Nov 2014 17:00:30 +0100 Subject: [PATCH] Fix api documentation for scrollbars. Accessing uiGridConstants scrollbars is possible via uiGridConstants.scrollbars.(ALWAYS|NEVER|WHEN_NEEDED), not uiGridConstants.scrollbar.(...) --- src/js/core/factories/GridOptions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/core/factories/GridOptions.js b/src/js/core/factories/GridOptions.js index 4f1c2906c7..14caf1ce7c 100644 --- a/src/js/core/factories/GridOptions.js +++ b/src/js/core/factories/GridOptions.js @@ -196,8 +196,8 @@ angular.module('ui.grid') * @ngdoc boolean * @name enableVerticalScrollbar * @propertyOf ui.grid.class:GridOptions - * @description uiGridConstants.scrollbar.ALWAYS by default. This settings controls the vertical scrollbar for the grid. - * Supported values: uiGridConstants.scrollbar.ALWAYS, uiGridConstants.scrollbar.NEVER, uiGridConstants.scrollbar.WHEN_NEEDED. + * @description uiGridConstants.scrollbars.ALWAYS by default. This settings controls the vertical scrollbar for the grid. + * Supported values: uiGridConstants.scrollbars.ALWAYS, uiGridConstants.scrollbars.NEVER, uiGridConstants.scrollbars.WHEN_NEEDED. */ baseOptions.enableVerticalScrollbar = typeof(baseOptions.enableVerticalScrollbar) !== "undefined" ? baseOptions.enableVerticalScrollbar : uiGridConstants.scrollbars.ALWAYS; @@ -205,8 +205,8 @@ angular.module('ui.grid') * @ngdoc boolean * @name enableHorizontalScrollbar * @propertyOf ui.grid.class:GridOptions - * @description uiGridConstants.scrollbar.ALWAYS by default. This settings controls the horizontal scrollbar for the grid. - * Supported values: uiGridConstants.scrollbar.ALWAYS, uiGridConstants.scrollbar.NEVER, uiGridConstants.scrollbar.WHEN_NEEDED. + * @description uiGridConstants.scrollbars.ALWAYS by default. This settings controls the horizontal scrollbar for the grid. + * Supported values: uiGridConstants.scrollbars.ALWAYS, uiGridConstants.scrollbars.NEVER, uiGridConstants.scrollbars.WHEN_NEEDED. */ baseOptions.enableHorizontalScrollbar = typeof(baseOptions.enableHorizontalScrollbar) !== "undefined" ? baseOptions.enableHorizontalScrollbar : uiGridConstants.scrollbars.ALWAYS;