public TableCell CreateInputFieldTableCell(string value, Action <TableCell> onEndEditAction = null) { GameObject gcell = GameObject.Instantiate(m_DefalutTableCell); TableInputFieldCell cell = gcell.GetComponent <TableInputFieldCell>(); cell.SetOnEndEditAction(onEndEditAction); cell.Value = value; return(cell); }
public TableCell CreateInputFieldTableCell(string value, bool CanEdit = false, Action <TableCell> onEndEditAction = null) { GameObject gcell = GameObject.Instantiate(m_DefalutTableCell); TableInputFieldCell cell = gcell.GetComponent <TableInputFieldCell>(); cell.SetOnEndEditAction(onEndEditAction); cell.Value = value; cell.InputField.textComponent.fontSize = m_FontSize; cell.InputField.interactable = false; return(cell); }