tbergmen / tableviewmodel Goto Github PK
View Code? Open in Web Editor NEWCreate dynamic UITableViews declaratively in Swift
License: MIT License
Create dynamic UITableViews declaratively in Swift
License: MIT License
The same way it's possible to deselect rows after selection, it would be good to be able to enable/disable selection of certain rows.
I created a tableview controller with TableViewModel. My cells contain UITextField
s. When I scroll the tableview and the cells go out of view i.e. I can't see them anymore, the text fields in them seem to reset.
To clarify, say I wrote something in the text field and scroll down until I can't see the cell with the text field. When I scroll back up, the text fields appear to be empty.
This only happens sometimes though, so you may need to try a few times to reproduce.
This is my code: https://github.com/Sweeper777/MathToolbox-Free/blob/b0f58c481ad2ef2efa356e3eb23bdc5a13735a56/MathToolbox/CustOpEditorController.swift
I think only line 26 - line 175 is relevant.
Unable to insert rows without KVO observing observableSections
which inserts the rows inside table view animated updates.
Would be nice to avoid this when adding rows in viewDidLoad
I'd like to be able to enable certain rows for edibility.
Allow for runtime cell height calculation:
videoPlaybackRow.height = {
return 100
}
Is it possible to fetch rows by an identifier or userObject
?
i.e rowWithName:
if let firstSection = self.tableViewModel.allSections().firstObject as? TableSection {
let filtered = (firstSection.allRows() as! Array<TableRow>).filter { $0.userObject as! String == "RecordVideo" }
if let recordVideoRow = filtered.first {
firstSection.removeRow(recordVideoRow)
}
}
Seems this commit a9ee3e1
made it possible to define section header views.
I'd like to be able to define section footer views also.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.