Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "core/CvAction"

Index

Variables

CvAction

CvAction: ClassicComponentClass<CvActionProps> = React.createClass<CvActionProps, CvActionState>({mixins: [CvBaseMixin, CvActionBase],componentDidMount: function() {this._componentDidMount();},componentWillReceiveProps(nextProps) {this._componentWillReceiveProps(nextProps);},getChildContext: function () {const ctx = this.getDefaultChildContext();ctx.cvContext.scopeCtx.scopeObj = this.menuDef();return ctx;},getDefaultProps: function () {return {actionId: null,fireOnLoad:null,paneContext: null,navTarget: null,menuDef: null,actionListeners: [],navigationListeners: [],stateChangeListeners: [],selectionProvider: null,renderer: null,wrapperElemName: 'span',wrapperElemProps: {},wrapperEventHandlerName: 'onClick',actionHandlerProvider: null}},getInitialState: function() {return this._getInitialState();},render: function () {if (this.props.renderer) {return this.props.renderer(this.getChildContext().cvContext, this._getCallbackObj())} else if (this.props.children){const props = ObjUtil.addAllProps(this.props.wrapperElemProps, {});props[this.props.wrapperEventHandlerName] = this.performAction;return React.createElement(this.props.wrapperElemName, props, this.props.children);} else {return null;}}})

Object literals

CvActionBase

CvActionBase: object

_checkDestroyed

  • _checkDestroyed(paneContext: PaneContext): void
  • Parameters

    • paneContext: PaneContext

    Returns void

_componentDidMount

  • _componentDidMount(): void
  • Returns void

_componentWillReceiveProps

  • _componentWillReceiveProps(nextProps: any): void
  • Parameters

    • nextProps: any

    Returns void

_getActionMeta

  • _getActionMeta(actionId: string): object
  • static methods

    Parameters

    • actionId: string

    Returns object

    • isClientAction: any
    • noTransition: any

_getCallbackObj

_getInitialState

  • _getInitialState(): object
  • Returns object

    • selectedTargets: undefined[]

_publishActionFinished

_publishActionStarted

  • Parameters

    • actionId: string
    • source: PaneContext
    • clientAction: boolean
    • actionListeners: Array<function>
    • eventRegistry: CvEventRegistry

    Returns CvEvent<CvActionFiredResult>

_setSelection

  • _setSelection(selectedTargets: Array<string>): void
  • Parameters

    • selectedTargets: Array<string>

    Returns void

_shouldComponentUpdate

  • _shouldComponentUpdate(nextProps: any, nextState: any): boolean
  • Parameters

    • nextProps: any
    • nextState: any

    Returns boolean

findPaneContextWithActionId

  • findPaneContextWithActionId(actionId: string): PaneContext
  • Parameters

    • actionId: string

    Returns PaneContext

getSelectedTargets

  • getSelectedTargets(): any
  • Returns any

menuDef

  • menuDef(): any
  • Returns any

paneContext

  • paneContext(): any
  • Returns any

performAction

Generated using TypeDoc