UIView | @uirouter/react
Options
Menu

Hierarchy

Index

Constructors

  • Parameters

    Returns UIView


Properties

componentInstance: any
context: any
deregister: Function
props: Readonly<object> | Readonly<UIViewProps>
refs: object

Type declaration

  • [key: string]: ReactInstance
removeHook: Function
uiViewAddress: UIViewAddress
uiViewData: ActiveUIView

Methods

  • componentWillMount(): void
  • componentWillUnmount(): void
  • forceUpdate(callBack?: function): void
  • Parameters

    • callBack: Optional  function
        • (): any
        • Returns any

    Returns void


  • getChildContext(): object
  • registerUiCanExitHook(stateName: string): void
  • render(): Element
  • setState<K>(state: function | S | object, callback?: function): void
  • Type parameters

    • K: keyof S

    Parameters

    • state function | S | object
    • callback: Optional  function
        • (): any
        • Returns any

    Returns void


  • viewConfigUpdated(newConfig: ReactViewConfig): void
  • View config updated callback

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

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

    Parameters

    • error Error
    • errorInfo ErrorInfo

    Returns void


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

  • Called immediately after a compoment is mounted. Setting state here will trigger re-rendering.

    Returns void


  • componentDidUpdate(prevProps: Readonly<UIViewProps>, prevState: Readonly<UIViewState>, prevContext: any): void
  • Called immediately after updating occurs. Not called for the initial render.

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

    Parameters

    Returns void


  • componentWillMount(): void
  • Called immediately before mounting occurs, and before Component#render. Avoid introducing any side-effects or subscriptions in this method.

  • Called immediately before mounting occurs, and before Component#render. Avoid introducing any side-effects or subscriptions in this method.

    Returns void


  • componentWillReceiveProps(nextProps: Readonly<UIViewProps>, nextContext: any): void
  • Called when the component may be receiving new props. React may call this even if props have not changed, so be sure to compare new and existing props if you only want to handle changes.

  • Called when the component may be receiving new props. React may call this even if props have not changed, so be sure to compare new and existing props if you only want to handle changes.

    Calling Component#setState generally does not trigger this method.

    Parameters

    Returns void


  • 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.

  • 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


  • componentWillUpdate(nextProps: Readonly<UIViewProps>, nextState: Readonly<UIViewState>, nextContext: any): void
  • Called immediately before rendering when new props or state is received. Not called for the initial render.

  • Called immediately before rendering when new props or state is received. Not called for the initial render.

    Note: You cannot call Component#setState here.

    Parameters

    Returns void


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

  • 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

    Returns boolean


Object literals

state: object
component: string = "div"
loaded: boolean = false
props: object

Type declaration

childContextTypes: object
parentUIViewAddress: Requireable<any> = PropTypes.object
contextTypes: object
parentUIViewAddress: Requireable<any> = PropTypes.object
router: Requireable<any> = PropTypes.object
propTypes: object
className: Requireable<any> = PropTypes.string
name: Requireable<any> = PropTypes.string
render: Requireable<any> = PropTypes.func
style: Requireable<any> = PropTypes.object

Generated using TypeDoc