Skip to content

Commit 7ea7c41

Browse files
Merge pull request #479 from AllenBW/documentation/update-custom-scope-verbiage
Update mentions of customScope to specify $ctrl.customScope
2 parents 07337f3 + 30127b3 commit 7ea7c41

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/notification/notification-drawer.component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @param {string} subheadingInclude Include src for the sub-heading area for each notification group, access the group via notificationGroup
2727
* @param {string} notificationBodyInclude Include src for the notification body for each notification, access the notification via notification
2828
* @param {string} notificationFooterInclude Include src for the notification footer for each notification, access the notification via notification
29-
* @param {object} customScope Object containing any variables/functions used by the included src, access via customScope.<xxx>
29+
* @param {object} customScope Object containing any variables/functions used by the included src, access via $ctrl.customScope.<xxx>
3030
*
3131
* @example
3232
<example module="patternfly.notification" deps="patternfly.utils, patternfly.filters, patternfly.sort, patternfly.views">

src/views/listview/list-view.component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @description
77
* Component for rendering a list view.
88
* Pass a customScope object containing any scope variables/functions you need to access from the transcluded source, access these
9-
* via 'customScope' in your transcluded hmtl.
9+
* via '$ctrl.customScope' in your transcluded hmtl.
1010
* <br><br>
1111
* If using expanding rows, use a list-expanded-content element containing expandable content for each row. Item data can be accessed inside list-expanded-content by using $parent.item.property. For each item in the items array, the expansion can be disabled by setting disableRowExpansion to true on the item.
1212
*
@@ -54,7 +54,7 @@
5454
* @param {function (item))} hideMenuForItemFn function(item) Used to hide all menu actions for a particular item
5555
* @param {function (item))} menuClassForItemFn function(item) Used to specify a class for an item's dropdown kebab
5656
* @param {function (action, item))} updateMenuActionForItemFn function(action, item) Used to update a menu action based on the current item
57-
* @param {object} customScope Object containing any variables/functions used by the transcluded html, access via customScope.<xxx>
57+
* @param {object} customScope Object containing any variables/functions used by the transcluded html, access via $ctrl.customScope.<xxx>
5858
* @param {object} emptyStateConfig Optional configuration settings for the empty state component. See the {@link patternfly.views.component:pfEmptyState Empty State} component
5959
* @example
6060
<example module="patternfly.views" deps="patternfly.utils">

0 commit comments

Comments
 (0)