How to use the @patternfly/react-core.TooltipPosition.top function in @patternfly/react-core

To help you get started, we’ve selected a few @patternfly/react-core 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 kiali / kiali-ui / src / components / IstioWizards / WeightedRouting.tsx View on Github external
const workloadsRows = this.state.workloads.map(workload => {
      return {
        cells: [
          <>
            Workload}>
              WS
            
            {workload.name}
          ,
          // This <> wrapper is needed by Slider
          <>
github kiali / kiali-ui / src / components / IstioWizards / SuspendTraffic.tsx View on Github external
const workloadsRows = this.state.suspendedRoutes.map(route => {
      return {
        cells: [
          <>
            Workload}>
              WS
            
            {route.workload}
          ,
          // Note that <button> here needs to be wrapped by an external &lt;&gt;, otherwise Icon is not properly rendered.
          &lt;&gt;
            </button><button> : }
              onClick={() =&gt; this.updateRoute(route.workload, !route.suspended)}
            &gt;
              {route.suspended ? 'Suspended' : 'Connected'}
            </button>
          
        ]
github openshift / console / frontend / packages / console-shared / src / components / SvgTooltip.tsx View on Github external
let boxY;
    let arrowPoints = ['', '', ''];

    if (!isActive) {
      return null;
    }

    const left = parentBox.x;
    const right = parentBox.x + parentBox.width;
    const top = parentBox.y;
    const bottom = parentBox.y + parentBox.height;
    const centerX = parentBox.x + parentBox.width / 2;
    const centerY = parentBox.y + parentBox.height / 2;

    switch (arrowPosition) {
      case TooltipPosition.top:
        boxX = left + (parentBox.width - bbWidth) / 2 - PADDING_X;
        boxY = top - OFFSET_Y - ARROW_WIDTH - bbHeight - PADDING_Y * 2;
        arrowPoints = [
          `${centerX},${top - OFFSET_Y}`,
          `${centerX - ARROW_HEIGHT / 2},${top - OFFSET_Y - ARROW_WIDTH - 2}`,
          `${centerX + ARROW_HEIGHT / 2},${top - OFFSET_Y - ARROW_WIDTH - 2}`,
        ];
        break;
      case TooltipPosition.bottom:
        boxX = left + (parentBox.width - bbWidth) / 2 - PADDING_X;
        boxY = bottom + OFFSET_Y + ARROW_WIDTH;
        arrowPoints = [
          `${centerX},${bottom + OFFSET_Y}`,
          `${centerX / 2 - ARROW_HEIGHT / 2},${boxY + 2}`,
          `${centerX + ARROW_HEIGHT / 2},${boxY + 2}`,
        ];
github Katello / katello / webpack / components / ActionableDetail.js View on Github external
const ActionableDetail = ({
  attribute, label, value, textArea, boolean, tooltip, onEdit,
}) =&gt; {
  const displayProps = { attribute, value, onEdit };

  return (
    
      
        {label}
        {tooltip &amp;&amp;
          <span>
            
              
            
          </span>
        }
      
      
        {boolean ?
           :
          }
      
    
  );
};
github fusor / mig-ui / src / app / storage / components / AddEditStorageModal / AddEditStorageForm.tsx View on Github external
{errors.secret}
        )}
      
      
        
          <button style="{{" type="submit">
            {addEditButtonTextFn(currentStatus)}
          </button>
          
              Add or edit your storage details
            }&gt;
            <span>
              
            </span>
          
          <button style="{{"> checkConnection(values.name)}
          &gt;
            Check Connection
          </button>
github fusor / mig-ui / src / app / plan / components / Wizard / ResultsStep.tsx View on Github external
return <button>Close</button>;
      case CurrentPlanState.Critical:
        return <button>Close</button>;
      case CurrentPlanState.TimedOut:
        return 
          <button style="{{">
            Close
            </button>
          <button disabled="{isPollingStatus}" style="{{">Check Connection</button>
          
              Re-check plan status.
            }&gt;
            <span></span>
          
        ;
      default:
        return null;
    }
  }
  const StyledCard = styled(Card)`
github fusor / mig-ui / src / app / cluster / components / AddEditClusterModal / AddEditClusterForm.tsx View on Github external
}&gt;
            <span>
              
            </span>
          
          <button style="{{"> checkConnection(values.name)}
          &gt;
            Check connection
          </button>
          
              Re-check your cluster's connection state
            }&gt;
            <span>
              
            </span>
          
        
        
          
        
        
          <button></button>
github fusor / mig-ui / src / app / storage / components / AddEditStorageModal / ProviderForms / AzureForm.tsx View on Github external
{errors.azureBlob}
                )}
            
            
                
                    <button style="{{" type="submit">
                        {addEditButtonTextFn(currentStatus)}
                    </button>
                    
                            Add or edit your storage details
            }&gt;
                        <span>
                            
                        </span>
                    
                    <button style="{{"> checkConnection(values.name)}
                    &gt;
                        Check Connection
          </button>
github kiali / kiali-ui / src / components / IstioWizards / MatchingRouting / Rules.tsx View on Github external
{rule.routes.map((route, i) =&gt; (
              <div>
                Workload}&gt;
                  WS
                
                {route}
              </div>
            ))}
github kiali / kiali-ui / src / components / IstioWizards / ThreeScaleIntegration.tsx View on Github external
(this.state.threeScaleServiceRule.threeScaleHandlerName === '' &amp;&amp; id === 0);
          return (
            
              
                 this.onHandlerToggle('handler' + id)}
                  isExpanded={this.state.handlersExpanded.includes('handler' + id)}
                  id={'handler' + id}
                  aria-controls={'handler' + id}
                /&gt;
                
                      {isLinked &amp;&amp; (
                        
                              Service <b>{this.props.serviceName}</b> will be linked with 3scale API
                            
                          }
                        &gt;
                          3S
                        
                      )}
                    ,
                    
                      {isLinked &amp;&amp; (
                        &lt;&gt;
                          Service <b>{this.props.serviceName}</b> will be linked with 3scale API using{' '}
                          <b>{handler.name}</b> handler. {handler.modified &amp;&amp; '*'}
                          <br>