Add some comments.

pull/6242/head
Richard Lewis 2018-03-26 11:48:29 +01:00
parent e36d972d94
commit 700515cce3
1 changed files with 10 additions and 0 deletions

View File

@ -19,9 +19,19 @@ limitations under the License.
import React from 'react';
import PropTypes from 'prop-types';
/*
* This component can be used to display generic HTML content in a contextual
* menu.
*/
export default class GenericElementContextMenu extends React.Component {
static PropTypes = {
element: PropTypes.element.isRequired,
// Function to be called when the parent window is resized
// This can be used to reposition or close the menu on resize and
// ensure that it is not displayed in a stale position.
onResize: PropTypes.func,
};
constructor(props) {