Beautiful and once are back and functionality is in place.
Once set up everything on a front then and what is really, really, really cool is the fact that we
already have everything in place.
If you remember when we were setting up get jobs, we're already looking for jobs.
There are no jobs and no off pages.
And we already passing it into your get job success.
So if right now I'm going to navigate to the front end and more specifically, if I'll take a look at
the components which you'll notice that each and every time I'll type something here in search form,
basically we'll change.
Our search parameters will also right away.
Update both of these values.
Total jobs and number of pages.
So if I change this one around, let's say that I'm looking for a see now.
I have 11 jobs and number of pages is equal to two.
And basically, what that means is that we can right away proceed to set up everything here.
As far as the button container is concerned.
And the way we'll do that is something like this, where first will create a component by the name of
page, body and container that one will import in the jobs container.
So there's going to be import for that one.
And we also right away, I want to get the number of pages.
And here's the deal.
I only want to display page button container if the value is bigger than one.
So that's my preference.
I don't see the point of showing the button container if I actually only have one page kind of doesn't
make sense to me.
Now, if you want, of course you can display it, but it's just going to be a preview and next button.
And then the button that displays that one page and again, in my opinion, might as well then hide
the component altogether.
So start over here with your component.
In my case, I'm going to go with Page Beaton and Container Jazz.
Let's start with very, very basic setup where we'll just go with a component you want to return, let's
say heading to you with page button container.
We want to right away import in the jobs one.
So let's take a look at this one.
We're looking for page between and container.
And you know what?
I think in this case, I will use the automatic import.
So let's go here with page and container.
And then once I have this one in place, I should also have the import and I'll grab a very large number
of pages, number of pages like Show Savant.
And then let's keep moving.
I want to set up the expression over here where I'll say if number of pages is bigger than one.
Only then I want to display the page button container.
So let's take this sucker out.
Copy and paste.
And now our functionality is in a place where the button container will be only displayed if we have
a number of pages bigger than one, if it's equal to one, right?
And we'll just display the jobs.