Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Reveal<SS>

prop

show: boolean

prop

direction: like ISliderDirection 0: left, 1: right, 2: up, 3: down

prop

withFade?: boolean

prop

fixedDistance?: revealTill a distance and show scrollbar

prop

childStyles?: all lise ISliderChildStyles except width or height

prop

mountUnmountAuthority

Type parameters

  • SS

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns Reveal

  • Parameters

    Returns Reveal

Properties

context

context: any

props

props: Readonly<object> & Readonly<IRevealPropType>

refs

refs: object

Type declaration

  • [key: string]: ReactInstance

state

state: Readonly<any>

Accessors

Private cssDirection

  • get cssDirection(): "max-height" | "max-width"

Private enterTimingFunction

  • get enterTimingFunction(): string

Private enterTransitionTime

  • get enterTransitionTime(): number

Private exitTimingFunction

  • get exitTimingFunction(): string

Private exitTransitionTime

  • get exitTransitionTime(): number

Private normalStyles

  • get normalStyles(): object

Methods

Private checkBeforeRender

  • checkBeforeRender(): void

Private cssHeightWidthPropWithValue

  • cssHeightWidthPropWithValue(forMax: boolean): CSSProperties

forceUpdate

  • forceUpdate(callBack?: undefined | function): void
  • Parameters

    • Optional callBack: undefined | function

    Returns void

render

  • render(): Element

setState

  • setState<K>(state: function | null | S | object, callback?: undefined | function): void
  • Type parameters

    • K: keyof any

    Parameters

    • state: function | null | S | object
    • Optional callback: undefined | function

    Returns void

Static Optional UNSAFE_componentWillMount

  • UNSAFE_componentWillMount(): void

Static Optional UNSAFE_componentWillReceiveProps

  • UNSAFE_componentWillReceiveProps(nextProps: Readonly<IRevealPropType>, nextContext: any): void

Static Optional UNSAFE_componentWillUpdate

  • UNSAFE_componentWillUpdate(nextProps: Readonly<IRevealPropType>, nextState: Readonly<any>, nextContext: any): void

Static Optional componentDidCatch

  • componentDidCatch(error: Error, errorInfo: ErrorInfo): void
  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

Static Optional componentDidMount

  • componentDidMount(): void
  • Called immediately after a component is mounted. Setting state here will trigger re-rendering.

    Returns void

Static Optional componentDidUpdate

  • componentDidUpdate(prevProps: Readonly<IRevealPropType>, prevState: Readonly<any>, snapshot?: SS): 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

    • prevProps: Readonly<IRevealPropType>
    • prevState: Readonly<any>
    • Optional snapshot: SS

    Returns void

Static Optional componentWillMount

  • componentWillMount(): void

Static Optional componentWillReceiveProps

  • componentWillReceiveProps(nextProps: Readonly<IRevealPropType>, nextContext: any): void

Static Optional componentWillUnmount

  • componentWillUnmount(): void
  • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

    Returns void

Static Optional componentWillUpdate

  • componentWillUpdate(nextProps: Readonly<IRevealPropType>, nextState: Readonly<any>, nextContext: any): void

Static Optional getSnapshotBeforeUpdate

  • getSnapshotBeforeUpdate(prevProps: Readonly<IRevealPropType>, prevState: Readonly<any>): SS | null
  • 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 SS | null

Static Optional shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Readonly<IRevealPropType>, nextState: Readonly<any>, nextContext: any): boolean
  • Called to determine whether the change in props and state should trigger a re-render.

    Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

    If false is returned, Component#render, componentWillUpdate and componentDidUpdate will not be called.

    Parameters

    • nextProps: Readonly<IRevealPropType>
    • nextState: Readonly<any>
    • nextContext: any

    Returns boolean

Generated using TypeDoc