| 345 | onMove () {} |
| 346 | |
| 347 | getButton (text, icon, title, args = []) { |
| 348 | const btnClass = `json-editor-btn-${icon}` |
| 349 | if (!this.iconlib) icon = null |
| 350 | else icon = this.iconlib.getIcon(icon) |
| 351 | |
| 352 | text = this.translate(text, args) |
| 353 | title = this.translate(title, args) |
| 354 | |
| 355 | if (!icon && title) { |
| 356 | text = title |
| 357 | title = null |
| 358 | } |
| 359 | |
| 360 | const btn = this.theme.getButton(text, icon, title) |
| 361 | btn.classList.add(btnClass) |
| 362 | return btn |
| 363 | } |
| 364 | |
| 365 | setButtonText (button, text, icon, title, args = []) { |
| 366 | if (!this.iconlib) icon = null |