Skip to content

Conversation

@aleene
Copy link
Owner

@aleene aleene commented Nov 27, 2016

This patch adds an editMode. A TagListView can be set in editable mode. In editable mode tags can be deleted. If not in editable mode they can only be selected.

The delegate functions make it possble to track events surrounding deletions. First it will becasked whether a specific tag may be deleted. Then the user will be informed when a tag has been deleted. This allows the user to sync data en TagListView..

This patch adds an editMode. A TagListView can be in editable mode. If in editable mode tags will be deleted. If not in editable mode they will be selected. With several delegate functions it is possible to intercept edit events.
Added the editMode option.
Added the editMode option
editMode functions added.
@aleene
Copy link
Owner Author

aleene commented Nov 27, 2016

I think the select- deselect delegates should only be called if isEditable is false. And viceversa the edit delegates only if isEditable is true. I should also add this:

optional func tableListView(_ tagListView: TagListView, 
           canEditTagAt index: Index) -> Bool

This asks the user permission for deletion.

Added the possibility of a editAccessory. And defined a datasource delegate protocol.
added datasource protocol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants