Comments (3)
Hey @Sushant40
Sorry for late response. I don't have plans to add method that you have mentioned. But there is an easy way to support them.
final class MyTableDirector: TableDirector {
func tableView(_ tableView: UITableView, willDisplayFooterView view: UIView, forSection section: Int)
{
invoke(action: .custom("my_event"), cell: nil, indexPath: indexPath)
}
}
and then catch your event with a row action.
from tablekit.
Thanks for creating such a great library, much appreciated!
I am commenting on this ancient issue to leave a hint for anyone else trying to implement this callback. The suggested fix is a difficult one - I don't think you can easily use invoke
for willDisplayFooterView because it's a section thing, not a row action. If I'm understanding things correctly, you'd have to create a fake indexPath and add your handler to every row.
You'll have better luck just doing your work directly in a TableDirector subclass, or calling back into some other class via a custom delegate.
from tablekit.
Hey @gurgeous, thank you for the comment!
You are right. Suggested solution is not the best one. And agree with you, something like this could work better.
final class MyTableDirector: TableDirector {
var onWillDisplayFooterView: ((_ section: Int) -> ())?
func tableView(_ tableView: UITableView, willDisplayFooterView view: UIView, forSection section: Int) {
onWillDisplayFooterView?(section)
}
}
tableDirector.onWillDisplayFooterView = { [weak self] section in
}
from tablekit.
Related Issues (20)
- Подскажи пожалуйста, как организовать получение данных из ячеек HOT 7
- How to activate canMove, canMoveTo for sorting drag & drop rows
- [QUESTION] Is there any way to customize rows appending/deleting HOT 1
- What you mean about options.userInfo
- Update sections with animation HOT 2
- Missing header view using AutoLayout HOT 6
- Plain table with no header or footer still shows the header/footer HOT 2
- [QUESTION] Scrolling is relatively glitchy HOT 4
- Support for moving rows? HOT 2
- Crash when doing clear() HOT 2
- [ВОПРОС] Как перезагружать секции при постраничной загрузке HOT 3
- Can't remove top extra space for grouped tableview HOT 8
- ConfigurableCell T triggers SwiftLint warning HOT 2
- Crash on reload of empty table if tableView contains tableHeaderView | iOS 10.3.1 HOT 1
- How to get rid of AutoLayout warning when using TableKit HOT 5
- Remove/delete a section HOT 1
- How to activate ability to delete a row? HOT 14
- How to reload a concrete row or cell? HOT 2
- Pagination?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tablekit.