Hierarchy

Hierarchy

Constructors

Properties

context: any

If using the new style context, re-declare this in your class to be the React.ContextType of your static contextType. Should be used with type annotation or static contextType.

static contextType = MyContext
// For TS pre-3.7:
context!: React.ContextType<typeof MyContext>
// For TS 3.7 and above:
declare context: React.ContextType<typeof MyContext>
props: Readonly<IIgrXExpansionPanelProps> & Readonly<{
    children?: ReactNode;
}>
refs: {
    [key: string]: ReactInstance;
}

Type declaration

  • [key: string]: ReactInstance
state: Readonly<{}>
contextType?: Context<any>

If set, this.context will be set at runtime to the current value of the given Context.

Usage:

type MyContext = number
const Ctx = React.createContext<MyContext>(0)

class Foo extends React.Component {
static contextType = Ctx
context!: React.ContextType<typeof Ctx>
render () {
return <>My context's value: {this.context}</>;
}
}

Accessors

  • get actualAmbientShadowColor(): string
  • Gets or sets the color to use for the check mark when the checkbox is checked.

    Returns string

  • set actualAmbientShadowColor(v): void
  • Parameters

    • v: string

    Returns void

  • get actualCaptionTextColor(): string
  • Gets or sets the color to use for the actual header caption text.

    Returns string

  • set actualCaptionTextColor(v): void
  • Parameters

    • v: string

    Returns void

  • get actualDescriptionTextColor(): string
  • Gets or sets the color to use for the actual header description text.

    Returns string

  • set actualDescriptionTextColor(v): void
  • Parameters

    • v: string

    Returns void

  • get actualElevation(): number
  • Gets or sets the elevation of the border shadow

    Returns number

  • set actualElevation(v): void
  • Parameters

    • v: number

    Returns void

  • get actualHeaderBackgroundColor(): string
  • Gets or sets the color to use for the actual background of the header.

    Returns string

  • set actualHeaderBackgroundColor(v): void
  • Parameters

    • v: string

    Returns void

  • get actualPenumbraShadowColor(): string
  • Gets or sets the color to use for the check mark when the checkbox is checked.

    Returns string

  • set actualPenumbraShadowColor(v): void
  • Parameters

    • v: string

    Returns void

  • get actualUmbraShadowColor(): string
  • Gets or sets the color to use for the check mark when the checkbox is checked.

    Returns string

  • set actualUmbraShadowColor(v): void
  • Parameters

    • v: string

    Returns void

  • get caption(): string
  • Gets / sets the caption to display in the header area.

    Returns string

  • set caption(v): void
  • Parameters

    • v: string

    Returns void

  • get captionCollapsedTextColor(): string
  • Gets or sets the color to use for the header caption text when the panel is collapsed.

    Returns string

  • set captionCollapsedTextColor(v): void
  • Parameters

    • v: string

    Returns void

  • get captionExpandedTextColor(): string
  • Gets or sets the color to use for the header caption text when the panel is expanded.

    Returns string

  • set captionExpandedTextColor(v): void
  • Parameters

    • v: string

    Returns void

  • get captionTextColor(): string
  • Gets or sets the color to use for the header caption text.

    Returns string

  • set captionTextColor(v): void
  • Parameters

    • v: string

    Returns void

  • get description(): string
  • Gets / sets the description to display in the header area.

    Returns string

  • set description(v): void
  • Parameters

    • v: string

    Returns void

  • get descriptionCollapsedTextColor(): string
  • Gets or sets the color to use for the header description text when the panel is collapsed.

    Returns string

  • set descriptionCollapsedTextColor(v): void
  • Parameters

    • v: string

    Returns void

  • get descriptionExpandedTextColor(): string
  • Gets or sets the color to use for the header description text when the panel is expanded.

    Returns string

  • set descriptionExpandedTextColor(v): void
  • Parameters

    • v: string

    Returns void

  • get descriptionTextColor(): string
  • Gets or sets the color to use for the header description text.

    Returns string

  • set descriptionTextColor(v): void
  • Parameters

    • v: string

    Returns void

  • get elevation(): number
  • Gets or sets the elevation to use for the button regardless of type.

    Returns number

  • set elevation(v): void
  • Parameters

    • v: number

    Returns void

  • get expanded(): boolean
  • Gets / sets the expanded state of the panel.

    Returns boolean

  • set expanded(v): void
  • Parameters

    • v: boolean

    Returns void

  • get headerBackgroundColor(): string
  • Gets or sets the color to use for the background of the header.

    Returns string

  • set headerBackgroundColor(v): void
  • Parameters

    • v: string

    Returns void

  • get headerCollapsedBackgroundColor(): string
  • Gets or sets the color to use for the background of the header when the panel is expanded.

    Returns string

  • set headerCollapsedBackgroundColor(v): void
  • Parameters

    • v: string

    Returns void

  • get headerExpandedBackgroundColor(): string
  • Gets or sets the color to use for the background of the header when the panel is expanded.

    Returns string

  • set headerExpandedBackgroundColor(v): void
  • Parameters

    • v: string

    Returns void

  • get height(): string
  • Returns string

  • set height(value): void
  • Parameters

    • value: string

    Returns void

  • get i(): XExpansionPanel
  • Returns XExpansionPanel

  • get onCollapsed(): ((s, e) => void)
  • Fires when the expansion panel is collapsed.

    Returns ((s, e) => void)

  • set onCollapsed(ev): void
  • Parameters

    Returns void

  • get onExpanded(): ((s, e) => void)
  • Returns ((s, e) => void)

  • set onExpanded(ev): void
  • Parameters

    Returns void

  • get width(): string
  • Returns string

  • set width(value): void
  • Parameters

    • value: string

    Returns void

Methods

  • Collapses the contents of the expansion panel.

    Returns void

  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

  • Returns void

  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    Returns void

  • Returns void

  • Returns void

  • Expands the contents of the expansion panel.

    Returns void

  • Parameters

    • name: string

    Returns any

  • Parameters

    • Optional callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    Returns any

  • Returns void

  • Returns DetailedReactHTMLElement<{
        children: any[];
        className: string;
        ref: ((ref) => void);
    }, any>

  • Type parameters

    Type Parameters

    • K extends never

    Parameters

    • state: {} | ((prevState, props) => {} | Pick<{}, K>) | Pick<{}, K>
    • Optional callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Parameters

    • nextProps: any
    • nextState: any

    Returns boolean

  • Toggles the expanded state of the expansion panel.

    Returns void

  • Returns void