#100DaysOfWeb in Python Transcripts
Chapter: Day 52: Anvil - Full Stack Web Apps
Lecture: Adding filtering to all docs form
0:00 Now, off scenes, behind the scenes,
0:02 I've put a bunch more content
0:04 into our little document server.
0:06 And when we run it our all forms shows all the documents,
0:09 but I'd kind of like, at the front here, or home,
0:14 I like the recent, like the most three recent ones.
0:16 So let's put the little thing like this,
0:21 so it'll show the recent documents there.
0:23 Now, we're going to do again one of these repeating panels.
0:25 Now check this out, let's go down here,
0:27 and say, you know what, use this template
0:29 that we already had, right there.
0:32 Notice how it's like this.
0:33 All we have to do is put a different sent of documents,
0:36 and we'll have this thing totally written.
0:38 How awesome is that?
0:39 Let's do this.
0:44 Like, a few seconds this page will be implemented.
0:48 Don't love the name, but for now I'm going to go with it.
0:50 Items is utilities.docs.
0:53 And let's just say, we'll just take the top three,
0:55 use this twice, try that.
1:00 That is incredible, isn't it?
1:02 With literally one minute I wrote this page,
1:04 because I was able to reuse these components,
1:06 both in code and draggy droppy style,
1:09 and how awesome. Look, if I click on it, it even takes me
1:12 to the one that we clicked on.
1:14 So this is super cool.
1:16 We got our all documents view with all of 'em,
1:19 and our home view, there.
1:20 And then, the last thing we want to do
1:22 in this part is to basically
1:24 let us search within here,
1:26 if I type things like science,
1:28 or I type week, I want this
1:30 to filter down. Let's do that now.