We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
While DefaultItemAction accepts a function to dynamically change icon value as like below,
DefaultItemAction
type IconFunction<T> = (item: T) => EuiIconType; export interface DefaultItemIconButtonAction<T> extends DefaultItemActionBase<T> { type: 'icon'; icon: EuiIconType | IconFunction<T>; color?: EuiButtonIconColor | EuiButtonIconColorFunction<T>; }
It crashes when shown in CollapsedItemActions component, due to its resolver only presents in DefaultItemAction component.
CollapsedItemActions
{ name: 'Clone', description: 'Clone this user', icon: item => (item.online ? 'eye' : 'eyeClosed'), onClick: this.cloneUser, 'data-test-subj': 'action-clone', }
If I pass an action with dynamic icon value like above, the table crashes when clicking the expand button in action column.
The text was updated successfully, but these errors were encountered:
EuiBasicTable
No branches or pull requests
While
DefaultItemAction
accepts a function to dynamically change icon value as like below,It crashes when shown in
CollapsedItemActions
component, due to its resolver only presents inDefaultItemAction
component.If I pass an action with dynamic icon value like above, the table crashes when clicking the expand button in action column.
The text was updated successfully, but these errors were encountered: