How to use patternfly-react - 10 common examples

To help you get started, we’ve selected a few patternfly-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github oVirt / ovirt-web-ui / src / components / VmDetails / cards / UtilizationCard.js View on Github external
{/* Disks don't have historic data */}
      
    
  )
}
DiskCharts.propTypes = {
github oVirt / ovirt-web-ui / src / components / VmDetails / cards / UtilizationCard / CpuCharts.js View on Github external
{ history.length === 0 &&  }
          { history.length > 0 &&
            
          }
        
        }
github StamusNetworks / scirius / hunt / src / containers / HistoryPage / HistoryPage.js View on Github external
page={this.props.page}
                    />
                
                
                
                
                    {this.state.data.results && this.state.data.results.map((item) => ())
                    }
                
                
                    
                
            
        );
    }
github StamusNetworks / scirius / hunt / src / containers / ActionsPage / ActionsPage.js View on Github external
render() {
        return (
            <div>
                
                
                    {this.state.data &amp;&amp; this.state.data.map((item) =&gt; (
                        
                    ))}
                
                
                    
                
            </div>
        );
github StamusNetworks / scirius / hunt / src / containers / SignaturesPage / SignaturesPage.js View on Github external
{this.state.view === 'rules_list' &amp;&amp; }

                {this.state.view === 'rules_list' &amp;&amp; }
                
                    { this.state.view === 'rules_list' &amp;&amp;  }
                    {this.state.view === 'rule' &amp;&amp; }
                    {this.state.view === 'dashboard' &amp;&amp; }
github oVirt / ovirt-web-ui / src / components / CreateVmWizard / steps / Storage.js View on Github external
const {
      id: idPrefix = 'create-vm-wizard-storage',
    } = this.props

    // ---- Table Row Editing Controller
    this.inlineEditController = {
      isEditing: ({ rowData, column, property }) =&gt; this.state.editing[rowData.id] !== undefined,
      onActivate: ({ rowData }) =&gt; this.onEditDisk(rowData),
      onConfirm: ({ rowData }) =&gt; this.handleRowConfirmChange(rowData),
      onCancel: ({ rowData }) =&gt; this.handleRowCancelChange(rowData),
    }

    // ----- Table Cell Renderers
    const headerFormatText = (label, { column }) =&gt; {label}

    const inlineEditFormatter = Table.inlineEditFormatterFactory({
      isEditing: additionalData =&gt; this.inlineEditController.isEditing(additionalData),

      renderValue: (value, additionalData) =&gt; {
        const { column } = additionalData
        return (
          
            { column.valueView ? column.valueView(value, additionalData) : value }
          
        )
      },

      renderEdit: (value, additionalData) =&gt; {
        const { column } = additionalData
        return (
          
            { column.editView ? column.editView(value, additionalData) : value }
github oVirt / ovirt-web-ui / src / components / CreateVmWizard / steps / Networking.js View on Github external
}

    const idPrefix = this.props.id || 'create-vm-wizard-nics'

    // ---- Table Row Editing Controller
    this.inlineEditController = {
      isEditing: ({ rowData, column, property }) =&gt; this.state.editing[rowData.id] !== undefined,
      onActivate: ({ rowData }) =&gt; this.onEditNic(rowData),
      onConfirm: ({ rowData }) =&gt; this.handleRowConfirmChange(rowData),
      onCancel: ({ rowData }) =&gt; this.handleRowCancelChange(rowData),
    }

    // ----- Table Cell Formatters
    const headerFormatText = (label, { column }) =&gt; {label}

    const inlineEditFormatter = Table.inlineEditFormatterFactory({
      isEditing: additionalData =&gt; this.inlineEditController.isEditing(additionalData),

      renderValue: (value, additionalData) =&gt; {
        const { column } = additionalData
        return (
          
            { column.valueView ? column.valueView(value, additionalData) : value }
          
        )
      },

      renderEdit: (value, additionalData) =&gt; {
        const { column } = additionalData
        return (
          
            { column.editView ? column.editView(value, additionalData) : value }
github theforeman / foreman / webpack / assets / javascripts / react_app / components / BreadcrumbBar / components / BreadcrumbSwitcherToggler.js View on Github external
import React from 'react';
import { Button, Icon } from 'patternfly-react';

// eslint-disable-next-line react/prefer-stateless-function
class BreadcrumbSwitcherToggler extends React.Component {
  render() {
    return (
      <button>
        
      </button>
    );
  }
}

BreadcrumbSwitcherToggler.propTypes = { ...Button.propTypes };

export default BreadcrumbSwitcherToggler;
github Katello / katello / webpack / components / pf3Table / formatters / EntitlementsInlineEditFormatter.js View on Github external
export const entitlementsInlineEditFormatter = (inlineEditController) => {
  const {
    hasChanged, onChange, onActivate, isEditing,
  } = inlineEditController;
  return Table.inlineEditFormatterFactory({
    isEditing,
    renderValue: (value, additionalData) =>
      renderValue(value, additionalData, onActivate),
    renderEdit: (value, additionalData) =>
      renderEdit(hasChanged, onChange, value, additionalData),
  });
};
github syndesisio / syndesis / shared / ui / dist / ConnectionSkeleton.js View on Github external
export const ConnectionSkeleton = (props) => (React.createElement(Card, { matchHeight: true },
    React.createElement(Card.Body, null,
        React.createElement(EmptyState, null,
            React.createElement(ContentLoader, Object.assign({ height: 300, width: 200, speed: 2, primaryColor: "#f3f3f3", secondaryColor: "#ecebeb" }, props),
                React.createElement("circle", { cx: "100", cy: "50", r: "40" }),
                React.createElement("rect", { x: "5", y: "125", rx: "5", ry: "5", width: "190", height: "30" }),
                React.createElement("rect", { x: "25", y: "180", rx: "5", ry: "5", width: "150", height: "15" }),
                React.createElement("rect", { x: "40", y: "205", rx: "5", ry: "5", width: "120", height: "15" }))))));
//# sourceMappingURL=ConnectionSkeleton.js.map