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

21
LINES

< > BotCompany Repo | #1013529 // Make table from standard function [Dyn]

JavaX source code (desktop) [tags: smartbot-dyn use-pretranspiled] - run with: x30.jar - homepage

Download Jar. Libraryless. Click here for Pure Java version (12405L/83K).

!7

!include once #1013530 // Dyn

html {
  uri = dropPrefix("/", uri);
  S sfName = uri;
  Collection l = (Collection) callSafeSF(sfName);
  new L data;
  for (O o : l)
    data.add(o instanceof Map ? (Map) o : litorderedmap("ID" := str(o)));

  temp tempSetThreadLocal(htmlTable_cellEncoder, func(S s) -> S {
    empty(s) ? s : smartBot_linkedTopic(s)
  });
  
  ret htitle(sfName)
    + hfullcenter(
        h2(sfName + " (" + l(data) + ")")
      + htable(data));
}

Author comment

Began life as a copy of #1013525

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: #1013529
Snippet name: Make table from standard function [Dyn]
Eternal ID of this version: #1013529/6
Text MD5: b48d27eb46c97c85aa052d68e3bd7f58
Transpilation MD5: 4d177810344340052c3ce2c46eaa2cc4
Author: stefan
Category: javax / a.i. / html
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-08 06:00:17
Source code size: 489 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 371 / 895
Version history: 5 change(s)
Referenced in: [show references]