import React, { Component } from 'react'; import { Popover, List, ListItem, ListButton, Link, Icon } from 'framework7-react'; import { f7 } from 'framework7-react'; const idContextMenuElement = "idx-context-menu-popover"; class ContextMenuView extends Component { constructor(props) { super(props); } componentDidMount() { // f7.popover.open('#idx-context-menu-popover', '#idx-context-menu-target'); } render() { const buttons = this.props.items || {}; return ( this.props.onMenuClosed()} > {buttons.map((b, index) => !!b.text ? this.props.onMenuItemClick(b.action)} /> : )} ) } } export {ContextMenuView as default, idContextMenuElement};