MCPcopy Create free account
hub / github.com/adobe/Marinus / create_button

Function create_button

web_server/public/javascripts/utilities.js:302–316  ·  view source on GitHub ↗
(visible_text, button_id, button_type = "icon", size = "S", icon = "search")

Source from the content-addressed store, hash-verified

300}
301
302function create_button(visible_text, button_id, button_type = "icon", size = "S", icon = "search") {
303
304 let settings = { "label": { "innerHTML": visible_text } };
305
306 if (button_type === "icon" && icon === "search") {
307 visible_text = visible_text + '&nbsp;<img src="/stylesheets/octicons/svg/search-24.svg" alt="search"/>';
308 }
309
310 var newButton = document.createElement("button");
311 newButton.className = "btn btn-primary btn-lg";
312 newButton.innerHTML = visible_text;
313 newButton.id = button_id;
314
315 return (newButton);
316}
317
318function add_click_event_listeners(row_name, row_type, row_function) {
319 let object_handle = row_name + '_' + row_type;

Callers 13

queriesFunction · 0.85
addCountBoxFunction · 0.85
displayCountDataFunction · 0.85
displayPortCountDataFunction · 0.85
process_srvFunction · 0.85
start_pageFunction · 0.85
display_graph_linkFunction · 0.85
display_cert_graph_linkFunction · 0.85
display_whois_dataFunction · 0.85
addCountBoxFunction · 0.85
continueBuildPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected