UNPKG

cluedin-widget

Version:

This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.

15 lines (13 loc) 493 B
import React from 'react'; import { removeWidget } from '../../action/core'; export default class RemovableComponent extends React.Component { getRemovableActions() { return [ { type: 'Action', icon: 'fa fa-trash-o', title: 'Remove Widget', onClick: this.removeWidget.bind( this ) } ]; } removeWidget() { let { layoutInformation, widgetName } = this.props; this.props.dispatch( removeWidget( widgetName, layoutInformation ) ); } }