ReactiveLists icon indicating copy to clipboard operation
ReactiveLists copied to clipboard

Support all delegate methods in cell models?

Open jessesquires opened this issue 7 years ago • 1 comments

For tables we provide:

    var willBeginEditing: WillBeginEditingClosure? { return nil }
    var didEndEditing: DidEndEditingClosure? { return nil }
    var editingStyle: UITableViewCellEditingStyle { return .none }
    var shouldHighlight: Bool { return true }
    var commitEditingStyle: CommitEditingStyleClosure? { return nil }
    var didSelectClosure: DidSelectClosure? { return nil }
    var accessoryButtonTappedClosure: AccessoryButtonTappedClosure? { return nil }
    var shouldIndentWhileEditing: Bool { return false }

For collections we provide:

    var shouldHighlight: Bool { return true }

    var didSelectClosure: DidSelectClosure? { return nil }

    var didDeselectClosure: DidDeselectClosure? { return nil }

Obviously, TableViewModel is further along, however, both should include willDisplay..., didEndDisplaying..., etc. hooks

jessesquires avatar Jan 24 '18 21:01 jessesquires

bumping this out of 0.1.2 for now

jessesquires avatar Jul 09 '18 21:07 jessesquires