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

8
LINES

< > BotCompany Repo | #1028495 // hcheckboxWithText - make HTML checkbox with clickable text label

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2814L/18K).

sS hcheckboxWithText(S name, S text, bool checked, O... params) {
  S id = randomID();
  ret hcheckbox(name, checked, paramsPlus(params, +id)) + " " + hlabelFor(id, htmlEncode2(text));
}

sS hcheckboxWithText(S name, S text) {
  ret hcheckboxWithText(name, text, false);
}

Author comment

Began life as a copy of #1003116

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028495
Snippet name: hcheckboxWithText - make HTML checkbox with clickable text label
Eternal ID of this version: #1028495/3
Text MD5: f60b424d9928ef15e7eed2589457c5b9
Transpilation MD5: 09c66783e51eaf2995e37bdaf91dbbe1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-23 00:20:12
Source code size: 279 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 171 / 246
Version history: 2 change(s)
Referenced in: [show references]