BookStack/resources/js/wysiwyg/ui/framework/blocks/action-field.ts
Dan Brown ad6b26ba97
Lexical: Added basic URL field header option list
May show bad option label names on chrome/safari.
This was an easy first pass without loads of extra custom UI since we're
using native datalists.
2024-08-16 12:29:40 +01:00

26 lines
675 B
TypeScript

import {EditorContainerUiElement, EditorUiElement} from "../core";
import {el} from "../../../utils/dom";
import {EditorButton} from "../buttons";
export class EditorActionField extends EditorContainerUiElement {
protected input: EditorUiElement;
protected action: EditorButton;
constructor(input: EditorUiElement, action: EditorButton) {
super([input, action]);
this.input = input;
this.action = action;
}
buildDOM(): HTMLElement {
return el('div', {
class: 'editor-action-input-container',
}, [
this.input.getDOMElement(),
this.action.getDOMElement(),
]);
}
}