(visible_text, button_id, button_type = "icon", size = "S", icon = "search")
| 300 | } |
| 301 | |
| 302 | function 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 + ' <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 | |
| 318 | function add_click_event_listeners(row_name, row_type, row_function) { |
| 319 | let object_handle = row_name + '_' + row_type; |
no outgoing calls
no test coverage detected