mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-04 19:45:35 +08:00
Update readme with implementation details for refreshing a tableview.
This commit is contained in:
@@ -684,6 +684,14 @@ end
|
||||
<td>searchable(placeholder: "placeholder text")</td>
|
||||
<td>Class method to make the current table searchable.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>refreshable</td>
|
||||
<td>Class method to make the current table refreshable.<p>You must also specify the following block in your <code>will_appear</code> method:</p>
|
||||
<code>on_refresh do<br />
|
||||
# Code to start the refresh</br>
|
||||
end</code>
|
||||
<p>And after you're done refreshing everything, call <code>end_refreshing</code> and your tableview will refresh the data automatically.</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<h3>table_data</h3>
|
||||
|
||||
Reference in New Issue
Block a user