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

ResourceVisibility

Extends:

react~Component → ResourceVisibility

ResourceVisibility - an icon representing resource visibility. If allowed setting different visibility than current, clicking the icon will show a popup with the visibility options. To approve the visibility change a confirm modal is shown.

Access

Stage.Basic.ResourceVisibility

Usage

ResourceVisibility (show)

ResourceVisibility

<ResourceVisibility visibility={consts.visibility.PRIVATE.name} />
<ResourceVisibility visibility={consts.visibility.TENANT.name} />
<ResourceVisibility visibility={consts.visibility.GLOBAL.name} />

Static Member Summary

Static Public Members
public static

Static Public Members

public static propTypes: * source

Properties:

NameTypeAttributeDescription
visibility string
  • optional
  • default: 'unknown'

resource visibility - in ['private', 'tenant, 'global', 'unknown']

onSetVisibility(visibility) func
  • optional

function to be called when user confirm changing visibility

allowedSettingTo Array
  • optional
  • default: ['tenant']

array of visibilities the item is allowed to change to

className string
  • optional
  • default: ''

Name of the style class to be added