Manual Reference Source
public class | source

FormDivider

Extends:

react~Component → FormDivider

FormDivider is a component to divide form fields using horizontal line in Form component

Access

Stage.Basic.Form.Divider

Usage

FormDivider 0

<Form loading={this.state.loading} errors={this.state.errors}>

  <Form.Divider>
    <Form.Radio label="Run default workflow" name="runWorkflow" checked={this.state.runWorkflow === DEFAULT_WORKFLOW}
                onChange={this._handleInputChange.bind(this)} value={DEFAULT_WORKFLOW}/>
  </Form.Divider>

  <Form.Field>
    <Form.Checkbox label="Run install workflow on added nodes"
                   name="installWorkflow" disabled={this.state.runWorkflow !== DEFAULT_WORKFLOW}
                   checked={this.state.installWorkflow} onChange={this._handleInputChange.bind(this)}/>
  </Form.Field>

  <Form.Field>
    <Form.Checkbox label="Run uninstall workflow on removed nodes"
                   name="uninstallWorkflow" disabled={this.state.runWorkflow !== DEFAULT_WORKFLOW}
                   checked={this.state.uninstallWorkflow} onChange={this._handleInputChange.bind(this)}/>
  </Form.Field>

  <Form.Divider>
    <Form.Radio label="Run custom workflow" name="runWorkflow" checked={this.state.runWorkflow === CUSTOM_WORKFLOW}
                onChange={this._handleInputChange.bind(this)} value={CUSTOM_WORKFLOW}/>
  </Form.Divider>

  <Form.Field error={this.state.errors.workflowId}>
    <Form.Input name='workflowId' placeholder="Workflow ID" disabled={this.state.runWorkflow !== CUSTOM_WORKFLOW}
                value={this.state.workflowId} onChange={this._handleInputChange.bind(this)}/>
  </Form.Field>
</Form>

Static Member Summary

Static Public Members
public static

propTypes

Static Public Members

public static propTypes: * source

propTypes

Properties:

NameTypeAttributeDescription
children object

primary content

className string
  • optional

stylesheet classes to add to h4 element