Options
All
  • Public
  • Public/Protected
  • All
Menu

Item Bank Entry Page for displaying items, revisions, and accessibility

export
class

ItemBankContainer

extends

{React.Component<ItemBankContainerProps, ItemBankContainerState>}

Hierarchy

Index

Constructors

constructor

Properties

context

context: any

props

props: Readonly<object> & Readonly<ItemBankContainerProps>

refs

refs: object

Type declaration

  • [key: string]: ReactInstance

state

state: Readonly<ItemBankContainerState>

Private subscription

subscription: Subscription = new Subscription()

Methods

componentDidMount

  • componentDidMount(): void

componentWillUnmount

  • componentWillUnmount(): void

fetchAboutItemRevisionModel

fetchAccResourceGroups

fetchRevisions

fetchSections

forceUpdate

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

    • Optional callBack: undefined | function

    Returns void

handleChangeRevision

  • handleChangeRevision(): void

handleChangeViewItem

  • handleChangeViewItem(): void

handleNextItem

  • handleNextItem(): void

handlePreviousItem

  • handlePreviousItem(): void

handleUpdateIsaap

handleUpdateItems

onAccessibilityReset

  • onAccessibilityReset(): void

onAccessibilityUpdate

onDirectionSelect

  • onDirectionSelect(direction: "next" | "previous"): void

onError

  • onError(err: string, cb?: undefined | function): void

onFetchAboutItemSuccess

onFetchAccResourceSuccess

onFetchRevisionsSuccess

onFetchSectionsSuccess

onItemSelect

  • onItemSelect(item: string): void

onRevisionSelect

  • onRevisionSelect(revision: string): void

render

  • render(): Element

renderItemBankEntry

  • renderItemBankEntry(): undefined | Element

renderItemBankViewer

  • renderItemBankViewer(): Element

setState

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

    • K: keyof ItemBankContainerState

    Parameters

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

    Returns void

updateNavigationItems

  • updateNavigationItems(): 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 compoment is mounted. Setting state here will trigger re-rendering.

    Returns void

Static Optional componentDidUpdate

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

    Parameters

    Returns void

Static Optional componentWillMount

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

    Returns void

Static Optional componentWillReceiveProps

  • 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

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

  • 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

Static Optional shouldComponentUpdate

  • 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

Generated using TypeDoc