Example #1
0
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            BookCell cell = tableView.DequeueReusableCell(CELL_IDENTIFIER, indexPath) as BookCell;

            var item = viewModel.Items[indexPath.Row];

            cell.Configure(item);
            cell.LayoutMargins = UIEdgeInsets.Zero;

            return(cell);
        }
Example #2
0
    public void UpdateCellInCaroselView(CaroselCell cell, int row)
    {
        BookCell bookCell = cell as BookCell;

        bookCell.bookTitle.text = "Book " + row;
    }
Example #3
0
 public void RemoveCell(BookCell cell)
 {
     Destroy(cell.gameObject);
     cells.Remove(cell);
 }
Example #4
0
 private void OnDisable()
 {
     cell = null;
 }
Example #5
0
    // Start is called before the first frame update
    public void SetModel(BookCell book)
    {
        cell = book;

        input.text = book.model.content;
    }