-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to activate ability to delete a row? #91
Comments
Hi @wdcurry, Here is an example of row deletion:
Hope it helps! |
This is awesome, thank you. I must have had a typo as I tried the original "return true" but received a compile error. Once I get tested, I will consider Dwiff as it is just so slick, as is TableKit. |
Perhaps my bits are not up-to-date, as I cannot assign a return value to canDeleteAction. This is what through me off the trail to begin with. The workflow is a bit unintuitive as the delete action in canDeleteAction is more an attribute than an action. Perhaps an evolution to allow us to pass in an array of attributes might make this tighter? My pod line is: pod 'FileKit' and the laptop is new so I should have the latest. I trust my cell definition is not involved in the issue as it is only a T .. edit: I had dropped a print() within the canDeleteAction closure and that was throwing it off, I can now proceed ;) to test. |
For completeness, as I typically work with arrays of records that feed my tables, I ended up with |
The original idea behind all those actions is how At the moment of implementing I just followed simplicity and wrapped everything under |
Thanks Max, you did a great job, and I like it. Once I get a bit of time, I will see about integrating Dwiff into the mix, which should allow even greater ease. The idea being that by simply managing the actual data itself will then be reflected into the tableview, which is a true plumber's helper. |
@maxsokolov Здравия желаю. Подскажи пожалуйста как изменять название "кнопки" удаления по свайпу с помощью TableKit ? Мне надо локализацию добавить |
@Majituteniyazov привет! Из коробки этой функции нет, придется наследоваться от |
@maxsokolov хорошо, спасибо, постараюсь сделать
|
@maxsokolov Приветствую! Мы уже как-то общались на тему кастомного тайтла выше. |
Не очень понимаю, что значит кастомизировать? Лучше рассмотреть на примере, что требуется сделать. |
Я хочу добавить TableRowActionType и реализацию (как пример: .on(.canDelete) и .on(clickDelete) ) |
Как вариант можно использовать .custom("")
|
I am likely TableKit so far, but am used to more manual styles for setting up row deletion (and Parse). I find no examples of this within TableKit, only refs to .CanDelete but am not sure how to structure the code.
I am more interested in integrating Dwiff into TableKit but thought I should master this side first.
The text was updated successfully, but these errors were encountered: