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.

static O[] params_plusHTMLClass(MapSO params, S className) {
  ret params_plusHTMLClass(wrapMapAsParams(params), className);
}

static O[] params_plusHTMLClass(O[] params, S className) {
  if (empty(className)) ret params;
  ret paramsPlus(params, class := joinNemptiesWithSpace(stringPar("class", params), className));
}

static O[] params_plusHTMLClass(S className, O[] params) {
  ret params_plusHTMLClass(params, className);
}

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: 214 / 293
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)