ComboBox Options
Let's custemize our combobox to be more personal.
Video Transcript
00:00Let's look at two different properties.
00:02So I already typed it, which is multiple.
00:05Now, the multiple basically enables
00:06you to basically select more than one item at a time.
00:09So basically enabling the user to select
00:11more than just one rating.
00:12Obviously, in a rating system, that wouldn't make any sense.
00:15But if we weren't in a rating system
00:17and we went inside there and clicked on Refresh here just
00:20to make that information come back in,
00:22you'll see that now it's not a dropdown list.
00:24But instead of that, you could come here
00:25and you could basically, by clicking on your Shift
00:27or clicking on the Control or whatever buttons
00:30you need to click to be able to select more than one thing
00:32at a time, you would be able to select more than one item
00:35at a time and basically enable you to send more than one
00:37value.
00:38And notice that our R value is now
00:40being sent out with a couple of different values.
00:43OK.
00:44OK.
00:44So by setting it to multiple, it
00:46enables us to basically make more than one selection
00:49at a time.
00:50All right, so there's one more select attribute
00:52that I want to show you.
00:52But before that, I'm going to get rid of that multiple
00:55right now.
00:55And I'm just going to put it as a comment
00:58so you could look at it later and remember
01:00how to do it yourself.
01:01What I want to do is I'm going to add
01:02a few more of our selections.
01:04So we have a lot of options, OK?
01:07So let's say I add here like 20,
01:09although it's repeating itself right now.
01:11And I'm just going to make sure that only one is selected,
01:14so we could unselect all the rest here, right?
01:17So we have only one selected.
01:19And get rid of that.
01:20Save that.
01:21Go back into our browser.
01:25Hmm.
01:27And click on Refresh.
01:28So now we'll see that when we open up our element,
01:30we'll see that we could see everything.
01:32But what if we didn't want to see so much?
01:34So what if we wanted to limit, for example,
01:36to see 10 at a time and not more than 10 at a time?
01:39There's actually a way to do that.
01:41Now, the way to do it is very simple.
01:42All you have to do is go into your selection area itself
01:46and add the actual definition of size.
01:50When you set the definition of size,
01:51you can add how many items you want to see at a time.
01:54For example, 10 at a time.
01:56Once I do that, we could go back into our element,
01:58click on Refresh, and this time around,
02:00we'll see that, again, it's going to,
02:02instead of having one item being visible
02:04like we had before, now it's basically showing us
02:0710 items at the same time,
02:08and it's instead of having a Dropbox.
02:10Okay.
02:11Okay?
02:12And by the way, you could mix and match
02:14and make it also multiple selection
02:16and also have a set size
02:17of how many things you see at a time.
02:19So it basically enables you to take that Dropbox
02:21or selection box and change the way it flows
02:24and how it looks like if you define a size to it or not.
02:27If you don't define the size,
02:28then it only shows one thing, which is the selected thing.
02:31And if you do set a size, then it opens it up
02:33and enables you to scroll through to select more items.
02:36You okay? That makes sense?
02:37Yeah.
02:38Good.
02:39All righty.
02:40So that's it.
