Pager

3 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€85.31
List Price:  €119.44
You save:  €34.13
£73.93
List Price:  £103.51
You save:  £29.57
CA$137.38
List Price:  CA$192.33
You save:  CA$54.95
A$152.49
List Price:  A$213.50
You save:  A$61
S$128.32
List Price:  S$179.66
You save:  S$51.33
HK$779.61
List Price:  HK$1,091.49
You save:  HK$311.87
CHF 79.92
List Price:  CHF 111.90
You save:  CHF 31.97
NOK kr1,001.53
List Price:  NOK kr1,402.19
You save:  NOK kr400.65
DKK kr636.88
List Price:  DKK kr891.66
You save:  DKK kr254.77
NZ$169.27
List Price:  NZ$236.99
You save:  NZ$67.71
د.إ367.21
List Price:  د.إ514.11
You save:  د.إ146.90
৳12,129.61
List Price:  ৳16,981.94
You save:  ৳4,852.32
₹8,820.96
List Price:  ₹12,349.69
You save:  ₹3,528.73
RM422.45
List Price:  RM591.45
You save:  RM169
₦153,119.68
List Price:  ₦214,373.68
You save:  ₦61,254
₨28,298.07
List Price:  ₨39,618.43
You save:  ₨11,320.36
฿3,229.82
List Price:  ฿4,521.88
You save:  ฿1,292.06
₺4,110.80
List Price:  ₺5,755.29
You save:  ₺1,644.48
B$544.74
List Price:  B$762.66
You save:  B$217.92
R1,757.93
List Price:  R2,461.17
You save:  R703.24
Лв166.73
List Price:  Лв233.43
You save:  Лв66.70
₩139,315.16
List Price:  ₩195,046.79
You save:  ₩55,731.63
₪334.96
List Price:  ₪468.96
You save:  ₪133.99
₱5,718.72
List Price:  ₱8,006.44
You save:  ₱2,287.71
¥14,711.57
List Price:  ¥20,596.79
You save:  ¥5,885.22
MX$1,860.71
List Price:  MX$2,605.07
You save:  MX$744.36
QR363.54
List Price:  QR508.98
You save:  QR145.43
P1,342.87
List Price:  P1,880.08
You save:  P537.20
KSh12,918.70
List Price:  KSh18,086.70
You save:  KSh5,168
E£4,858.40
List Price:  E£6,801.95
You save:  E£1,943.55
ብር14,207.39
List Price:  ብር19,890.91
You save:  ብር5,683.52
Kz91,186.38
List Price:  Kz127,664.58
You save:  Kz36,478.20
CLP$97,077.66
List Price:  CLP$135,912.62
You save:  CLP$38,834.95
CN¥713
List Price:  CN¥998.24
You save:  CN¥285.23
RD$6,289.01
List Price:  RD$8,804.87
You save:  RD$2,515.85
DA12,972.12
List Price:  DA18,161.49
You save:  DA5,189.37
FJ$225.10
List Price:  FJ$315.15
You save:  FJ$90.05
Q764.55
List Price:  Q1,070.41
You save:  Q305.85
GY$20,859.58
List Price:  GY$29,204.24
You save:  GY$8,344.66
ISK kr12,234.77
List Price:  ISK kr17,129.17
You save:  ISK kr4,894.40
DH899.20
List Price:  DH1,258.92
You save:  DH359.71
L1,662.76
List Price:  L2,327.94
You save:  L665.17
ден5,253.59
List Price:  ден7,355.25
You save:  ден2,101.65
MOP$800.90
List Price:  MOP$1,121.29
You save:  MOP$320.39
N$1,770.60
List Price:  N$2,478.91
You save:  N$708.31
C$3,675.04
List Price:  C$5,145.20
You save:  C$1,470.16
रु14,078.16
List Price:  रु19,709.99
You save:  रु5,631.82
S/353.04
List Price:  S/494.27
You save:  S/141.23
K420.89
List Price:  K589.26
You save:  K168.37
SAR375.22
List Price:  SAR525.32
You save:  SAR150.10
ZK2,352.53
List Price:  ZK3,293.64
You save:  ZK941.10
L432.72
List Price:  L605.83
You save:  L173.10
Kč2,084.93
List Price:  Kč2,918.98
You save:  Kč834.05
Ft33,719.57
List Price:  Ft47,208.75
You save:  Ft13,489.17
SEK kr940.77
List Price:  SEK kr1,317.11
You save:  SEK kr376.34
ARS$134,685.39
List Price:  ARS$188,564.93
You save:  ARS$53,879.54
Bs689.25
List Price:  Bs964.97
You save:  Bs275.72
COP$401,007.86
List Price:  COP$561,427.04
You save:  COP$160,419.18
₡50,407.82
List Price:  ₡70,572.96
You save:  ₡20,165.14
L2,619.12
List Price:  L3,666.88
You save:  L1,047.75
₲721,152.50
List Price:  ₲1,009,642.35
You save:  ₲288,489.85
$U4,000.21
List Price:  $U5,600.46
You save:  $U1,600.24
zł363.06
List Price:  zł508.30
You save:  zł145.24
Already have an account? Log In

Transcript

Hello, in this bootstrap four video we're going to cover pages pages allow you to implement a simple pagination with just back and forward buttons. To do this, it's really simple, you just need to do a nap now has no class at all. in sight, you need to do an on ordered list. This has a class of pager. Inside this we need to list items. One list item for the previous bottom which will be on the left and the other list item is for the forward button which will be on the right so close this off.

The list item doesn't require any classes either. Let's do a h ref for this on going to do a hash so it doesn't go anywhere. And inside here you put the text that you want to display in your return song back. Luckily, I'm gonna put previous now we can simply copy and paste this. Changes to next, save that, go to a web browser refresh. There we go, we have some nice page buttons.

It's very common to use these instead of a more complex pagination system, which has the individual page numbers. This is very simple for blogs, magazines, that sort of stuff. You can also align these at the moment, they're just in the center, but you can make them float to little air floats, right. And to do this really simple, you need to add a class to the list item. Actually, you know what? I'm going to duplicate this so you can see the difference.

That's the best way to learn. So, for a class here, change this to pay jet dash prief prior to stuff a previous for another class here, class equals pager dash next, save that refresh. And there we go, these are now aligned to the left and the right of its parent container. So when we restart the browser, they'll come in as we the assuming your addition. So if you're increasing the size of the browser, then they'll go out. Optionally, you can also add a disabled state.

So this is copy and paste this Molly thinking, why would you won't want to disable it. For example, if you're on the first page, you don't want the user to be able to go back a page you want it disabled. And to do that, what we're going to do is simply add a class of disabled. And likewise, if you're on the last page, you don't want the user to be able to go any further because they can't. So you want it disabled. So it just helps with user experience and the flow of the web.

Site refresh. There we go. This is now grayed out where as this one is clickable. So that's it for pages. If you have any questions, feel free to post them on our education platform. So not learning Dakota, UK, forward slash question dot php.

There'll be a link in the description to that. There'll be another link in the description to the source code from this video. Please rate, comment and subscribe as it really does help us get our content out there. Plus he also helps us learn what you like about the video and what you don't like about the video. And as usual, thanks for watching, and I hope you have a great day.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.