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

RevertToDefaultIcon

Extends:

react~Component → RevertToDefaultIcon

RevertToDefaultIcon is a component showing undo icon. It is desired to be used in input fields.

Access

Stage.Basic.RevertToDefaultIcon

Usage

RevertToDefaultIcon

<Form.Input icon={<RevertToDefaultIcon value={this.state.value} defaultValue={param.default}
            onClick={() => this.revertToDefault(param.name)} />} value={this.state.value} />

Static Member Summary

Static Public Members
public static

propTypes

Static Public Members

public static propTypes: * source

propTypes

Properties:

NameTypeAttributeDescription
value any

typed field value

defaultValue any

typed field default value

onClick Function

function to be called on revert icon click