Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add customData to deltemplate in management toolbar | Fixes #938 #939

Merged
merged 1 commit into from
May 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/clay-management-toolbar/src/ClayManagementToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,15 @@ ClayManagementToolbar.STATE = {
viewMoreURL: Config.string(),
}),

/**
* Data that will be passed to deltemplates.
* @default undefined
* @instance
* @memberof ClayManagementToolbar
* @type {?object}
*/
customData: Config.object(),

/**
* Flag to indicate if the managment toolbar is disabled or not.
* @default false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
]>,
viewMoreURL: string
]}
{@param? customData: ?}
{@param? disabled: bool}
{@param? elementClasses: string}
{@param? filterItems: list<[
Expand Down Expand Up @@ -143,6 +144,7 @@
{param _showSearchMobile: $_showSearchMobile /}
{param contentRenderer: $contentRenderer ?: '' /}
{param creationMenu: $creationMenu /}
{param customData: $customData /}
{param disabled: $disabled /}
{param filterItems: $filterItems /}
{param searchActionURL: $searchActionURL /}
Expand Down Expand Up @@ -419,6 +421,7 @@
]>,
viewMoreURL: string
]}
{@param? customData: ?}
{@param? disabled: bool}
{@param? filterItems: list<[
checked: bool,
Expand Down Expand Up @@ -555,6 +558,7 @@
{delcall ClayManagementToolbar.SearchForm variant="$contentRenderer"}
{param _handleCloseMobileSearchClick: $_handleCloseMobileSearchClick /}
{param _handleSearchSearchClick: $_handleSearchSearchClick /}
{param customData: $customData /}
{param disabled: $disabled and not $searchValue /}
{param onlySearch: $onlySearch /}
{param searchActionURL: $searchActionURL /}
Expand Down Expand Up @@ -762,6 +766,7 @@
{@param spritemap: string}
{@param? _handleCloseMobileSearchClick: any}
{@param? _handleSearchSearchClick: any}
{@param? customData: ?}
{@param? disabled: bool}
{@param? onlySearch: bool}
{@param? searchActionURL: string}
Expand Down