Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1002547 // pageNav - HTML page navigation

JavaX fragment (include)

// 100 items per page
static S pageNav(Map<S, S> params, L<S> keepFields, int count, S nVar) {
  new L<S> l;
  for (int i = 0; i < count; i += 100)
    l.add(ahref(selfLink(params, keepFields, nVar, str(i)), i/100+1));
  ret p("Pages: " + lines(l));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002547
Snippet name: pageNav - HTML page navigation
Eternal ID of this version: #1002547/2
Text MD5: 6b5adcb045c1dc9b618ecde037ffdcdc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-31 04:58:43
Source code size: 257 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 602 / 568
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1011562 - pageNav2 - HTML page navigation with flexible base link
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)