import React, {Component} from 'react'; import { f7 } from 'framework7-react'; import {Device} from '../../../../../common/mobile/utils/device'; import { withTranslation} from 'react-i18next'; import AddTable from '../../view/add/AddTable'; class AddTableController extends Component { constructor (props) { super(props); this.onStyleClick = this.onStyleClick.bind(this); const api = Common.EditorApi.get(); api.asc_GetDefaultTableStyles(); } closeModal () { if ( Device.phone ) { f7.sheet.close('.add-popup', true); } else { f7.popover.close('#add-popover'); } } onStyleClick (type) { const api = Common.EditorApi.get(); this.closeModal(); const { t } = this.props; const _t = t("Add", { returnObjects: true }); let picker; const dialog = f7.dialog.create({ title: _t.textTableSize, text: '', content: '