import { AnyVirtualDOM, ChildrenLike, VirtualDOM, ChildLike } from '@youwol/rx-vdom'; /** * Represents an expandable widget, featuring: * * An horizontal customizable header * * The content when expanded * * This view is registered in {@link GlobalMarkdownViews}: it can be instantiated from Markdown using the tag * `expandable`. See constructor's documentation for details regarding its parameters. */ export declare class ExpandableGroupView implements VirtualDOM<'div'> { readonly tag = "div"; readonly class = "w-100 rounded border py-1 px-2 my-1"; readonly children: ChildrenLike; /** * Initializes a new instance. * * @param _args The arguments. * @param _args.title Title displayed in the header. * Provided as attribute `title` when instantiated from MarkDown. * @param _args.icon Icon displayed in the header. An instance of `string` is used as class of a `div` element. * Provided as attribute `icon` when instantiated from MarkDown (only string supported). * @param _args.content Content displayed when the widget is expanded. * Provided as the HTMLElement's `textContent` when instantiated from MarkDown. * @param _args.expanded Initial state. Provided as attribute `expanded` when instantiated from MarkDown. * @param _args.mode Whether to preserve the state of the content when expanding/hidding. */ constructor({ title, icon, content, expanded, mode, }: { title: string | ChildLike; icon: string | AnyVirtualDOM; content: () => AnyVirtualDOM; mode?: 'stateful' | 'stateless'; expanded?: boolean; }); }