LabIcon | @jupyterlab (original) (raw)
Implements
Index
Constructors
constructor
Properties
Protected
_className
_className: string
Protected
_loading
_loading: boolean
Protected
_props
Protected
_svgElement
_svgElement: undefined | null | HTMLElement = undefined
Protected
_svgInnerHTML
_svgInnerHTML: undefined | null | string = undefined
Protected
_svgReactAttrs
_svgReactAttrs: any = undefined
Protected
_svgReplaced
Protected
_svgstr
_svgstr: string
Protected
_uuid
_uuid: string
Readonly
name
name: string
Readonly
react
Accessors
Protected
svgElement
- get svgElement(): null | HTMLElement
HTMLElement
Returns null |
Protected
svgInnerHTML
- get svgInnerHTML(): null | string
Returns null | string
Protected
svgReactAttrs
- get svgReactAttrs(): any
Returns any
svgstr
- get svgstr(): string
Returns string
- set svgstr(svgstr: string): void
Returns void
Methods
Protected
_initReact
- _initReact(
displayName: string,
): ForwardRefExoticComponent<LabIcon.IProps & RefAttributes<SVGElement>> Parameters
- displayName: string
Returns ForwardRefExoticComponent<LabIcon.IProps & RefAttributes<SVGElement>>
Protected
_initRender
Protected
_initSvg
- _initSvg(
__namedParameters?: { title?: string; uuid?: string },
): null | HTMLElement Parameters
- __namedParameters: { title?: string; uuid?: string } = {}
Returns null | HTMLElement
bindprops
a view of this LabIcon instance
element
- element(props?: LabIcon.IProps): HTMLElement
HTMLElement
Returns
A DOM element that contains an (inline) svg element that displays an icon
render
- render(container: HTMLElement, options?: LabIcon.IRendererOptions): void
Returns void
Optional
unrender
- unrender(container: HTMLElement, options?: LabIcon.IRendererOptions): void
Returns void
Static
remove
- remove(container: HTMLElement): HTMLElement
HTMLElement
Returns
the cleaned container
Static
resolve
- resolve(options: { icon: IRenderMime.LabIcon.IResolvable }): LabIcon
LabIcon
Returns
a LabIcon instance
Static
resolveElement
- resolveElement(
__namedParameters: Partial<IResolverProps> & LabIcon.IProps,
): HTMLElement HTMLElement
Returns
a DOM node with the resolved icon rendered into it
Static
resolveReact
- resolveReact(
__namedParameters: Partial<IResolverProps> & LabIcon.IProps & RefAttributes<
SVGElement,
>,
): Element Returns Element
a React component that will render the resolved icon
Static
resolveSvg
- resolveSvg(__namedParameters: LabIcon.IIcon): null | HTMLElement
HTMLElement
Returns null |
Static
toggleDebug
- toggleDebug(debug?: boolean): void
Parameters
Optional
debug: boolean