@acepad/widget
v1.0.0
Published
A widget system for embedding iframes and UI components into Acepad editors.
Downloads
7
Maintainers
Readme
NOTE: This package is supporsed to work in acepad, not a regular node envronment.
@acepad/widget
A widget(GUI) system for the Acepad editor that supports rendering iframes, overlay components, and dynamically interactive UI blocks inside the editor layout.
functions
- showIframe(url_or_file)
- shows url or file(in html) as a widget.
- show(dom, options)
- Shows widget
dom: optional. Element to be used as the widget.options:width: Specify width in percent(100 for full width), default is 100.buttons: Configure buttons on title bar.- Array of
{command: , caption: }wherecommandis either "close", "minify" or custom function
- Array of
noMenu: do not show minified icon.fullscreen: Set true and show over screen keyboardoverlay: Set true and enable auto overlay editor for each<input>or<textarea>elements in the widget. Overlay editor allows input via acepad screen keyboard.
- returns
elementThe element used as this widgetcloseClose the widgetminifyMinify the widgetprint(dom)Putdomelement into the widget. If the element of same id exists. The element is 'overwritten' by preserving original DOM tree and events as possible. Seeexamples/print.js
- See
types.d.tsfor full TypeScript definitions.
Features
- Embed iframe panels with custom URLs and live content
- Minimize, close, and manage widgets from the toolbar
- Dynamic DOM updating and data binding via
.print - Optional overlay activation for Smartphone input.
License
MIT
Repository
https://github.com/hoge1e3/acepad-dev/
