xOnXCell_Before_Edit method

dynamic xOnXCell_Before_Edit(
  1. XCol xCol,
  2. dynamic value, {
  3. dynamic itemToSet,
})

Implementation

xOnXCell_Before_Edit(XCol xCol, dynamic value, {dynamic itemToSet}) async {
  if (xEditDialog_liProps.isEmpty) {
    xEditDialog_EditCell = xCol.colCaption;
  } else {
    for (var i in xEditDialog_liProps) {
      xEditDialog_EditCell = " " + i.col_Label;
    }
  }

  if ((isAndroid() || isIOS()) && widget.modePage_Active) {
    var x = await xEditDialog(itemToSet, xEditDialog_EditCell, value, xCol);
    if (x != null) {
      itemInEdit_Clone[xCol.colKey] = x;
    }
  }
  setState(() {
    enteredInEditOnCell = false;
    btnUpdateChangesShow = false;
  });
  return () {};
}