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 |
propTypes: * |
|
| public static |
order of visibilities when changing visibility |
|
Static Public Members
public static propTypes: * source
Properties:
| Name | Type | Attribute | Description |
| visibility | string |
|
the current visibility, one from ['tenant', 'private', 'global']. |
| onVisibilityChange | Function |
|
the callback to be called with the new visibility |
| disallowGlobal | bool |
|
should the component not allow changing the global |
| allowChange | bool |
|
should the component allow changing visibility |
| className | string |
|
Name of the style class to be added |
Manual
Reference
Source
