/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net */ /** * [[include:modules/widget/tabs/README.md]] * @packageDocumentation * @module modules/widget/tabs */ import type { IViewBased } from "../../../types/index"; import { UIElement } from "../../../core/ui/index"; export interface TabOption { icon?: string; name: string; content: HTMLElement | ((this: IViewBased) => void) | UIElement; } /** * Build tabs system * * @param tabs - PlainObject where 'key' will be tab's Title and `value` is tab's content * @param state - You can use for this param any HTML element for remembering active tab * * @example * ```javascript * const editor = Jodit.make('#editor'); * const tabs = Jodit.modules.TabsWidget(editor, [ * { name: 'Images', content: '