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

12
LINES

< > BotCompany Repo | #1031696 // params_plusHTMLClass

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

Transpiled version (3031L) is out of date.

1  
static O[] params_plusHTMLClass(MapSO params, S className) {
2  
  ret params_plusHTMLClass(wrapMapAsParams(params), className);
3  
}
4  
5  
static O[] params_plusHTMLClass(O[] params, S className) {
6  
  if (empty(className)) ret params;
7  
  ret paramsPlus(params, class := joinNemptiesWithSpace(stringPar("class", params), className));
8  
}
9  
10  
static O[] params_plusHTMLClass(S className, O[] params) {
11  
  ret params_plusHTMLClass(params, className);
12  
}

Author comment

Began life as a copy of #1024480

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031696
Snippet name: params_plusHTMLClass
Eternal ID of this version: #1031696/5
Text MD5: 2dc1d062a66d986c895014fccaa09a31
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-23 01:59:51
Source code size: 441 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 213 / 293
Version history: 4 change(s)
Referenced in: [show references]