How to use the megadraft.MegadraftIcons function in megadraft

To help you get started, we’ve selected a few megadraft examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github globocom / megadraft-table-plugin / lib / Block.js View on Github external
function TableBlock(props) {
    _classCallCheck(this, TableBlock);

    var _this = _possibleConstructorReturn(this, (TableBlock.__proto__ || Object.getPrototypeOf(TableBlock)).call(this, props));

    _this._handleEdit = _this._handleEdit.bind(_this);
    _this._onModalClose = _this._onModalClose.bind(_this);
    _this._onSave = _this._onSave.bind(_this);

    _this.state = {
      isEditing: false
    };

    _this.actions = [{ "key": "edit", "icon": _megadraft.MegadraftIcons.EditIcon, "action": _this._handleEdit }, { "key": "delete", "icon": _megadraft.MegadraftIcons.DeleteIcon, "action": _this.props.container.remove }];
    return _this;
  }