Manual Reference Source
import VisibilityField from 'cloudify-stage/basic/VisibilityField.js'
public class | source

VisibilityField

Extends:

react~Component → VisibilityField

VisibilityField - allowing the user to choose visibilities for resources by showing the visibility icon and clicking on it to switch.

The component accepts a callback function to be called with the current visibility on change.

Access

Stage.Basic.VisibilityField

Usage

 <VisibilityField visibility={CURRENT_AVAILABILITY} onVisibilityChange={(newVisibility) => IMPLEMENT_LOGIC_HERE} disallowGlobal={true} className={ANY_CLASS_NAME}/>

Static Member Summary

Static Public Members
public static
public static

order of visibilities when changing visibility

Static Public Members

public static propTypes: * source

Properties:

NameTypeAttributeDescription
visibility string
  • optional
  • default: 'unkown'

the current visibility, one from ['tenant', 'private', 'global'].

onVisibilityChange Function
  • optional

the callback to be called with the new visibility

disallowGlobal bool
  • optional
  • default: false

should the component not allow changing the global

allowChange bool
  • optional
  • default: true

should the component allow changing visibility

className string
  • optional
  • default: ''

Name of the style class to be added

public static visibilitiesOrder: * source

order of visibilities when changing visibility