Skip to content

Commit 74a61a5

Browse files
committed
Fix api documentation for scrollbars.
Accessing uiGridConstants scrollbars is possible via uiGridConstants.scrollbars.(ALWAYS|NEVER|WHEN_NEEDED), not uiGridConstants.scrollbar.(...)
1 parent 5341b3c commit 74a61a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/js/core/factories/GridOptions.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -196,17 +196,17 @@ angular.module('ui.grid')
196196
* @ngdoc boolean
197197
* @name enableVerticalScrollbar
198198
* @propertyOf ui.grid.class:GridOptions
199-
* @description uiGridConstants.scrollbar.ALWAYS by default. This settings controls the vertical scrollbar for the grid.
200-
* Supported values: uiGridConstants.scrollbar.ALWAYS, uiGridConstants.scrollbar.NEVER, uiGridConstants.scrollbar.WHEN_NEEDED.
199+
* @description uiGridConstants.scrollbars.ALWAYS by default. This settings controls the vertical scrollbar for the grid.
200+
* Supported values: uiGridConstants.scrollbars.ALWAYS, uiGridConstants.scrollbars.NEVER, uiGridConstants.scrollbars.WHEN_NEEDED.
201201
*/
202202
baseOptions.enableVerticalScrollbar = typeof(baseOptions.enableVerticalScrollbar) !== "undefined" ? baseOptions.enableVerticalScrollbar : uiGridConstants.scrollbars.ALWAYS;
203203

204204
/**
205205
* @ngdoc boolean
206206
* @name enableHorizontalScrollbar
207207
* @propertyOf ui.grid.class:GridOptions
208-
* @description uiGridConstants.scrollbar.ALWAYS by default. This settings controls the horizontal scrollbar for the grid.
209-
* Supported values: uiGridConstants.scrollbar.ALWAYS, uiGridConstants.scrollbar.NEVER, uiGridConstants.scrollbar.WHEN_NEEDED.
208+
* @description uiGridConstants.scrollbars.ALWAYS by default. This settings controls the horizontal scrollbar for the grid.
209+
* Supported values: uiGridConstants.scrollbars.ALWAYS, uiGridConstants.scrollbars.NEVER, uiGridConstants.scrollbars.WHEN_NEEDED.
210210
*/
211211
baseOptions.enableHorizontalScrollbar = typeof(baseOptions.enableHorizontalScrollbar) !== "undefined" ? baseOptions.enableHorizontalScrollbar : uiGridConstants.scrollbars.ALWAYS;
212212

0 commit comments

Comments
 (0)