How to use the office-ui-fabric-react.MessageBarType.error function in office-ui-fabric-react

To help you get started, we’ve selected a few office-ui-fabric-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 SharePoint / sp-dev-fx-webparts / samples / react-calendar / src / webparts / calendar / components / Calendar.tsx View on Github external
<div style="{{backgroundColor:">
        
        {
          (!this.props.list || !this.props.eventStartDate.value || !this.props.eventEndDate.value) ?
            
            :
            // test if has errors
            this.state.hasError ?
              
                {this.state.errorMessage}
              
              :
              // show Calendar
              // Test if is loading Events
              <div>
                {this.state.isloading ?  :
                  <div>
                    </div></div></div>
github Azure / AIPlatform / end-to-end-solutions / Luna / src / Luna.UI / isv_client / src / routes / Offers / ArmTemplates.tsx View on Github external
const globalContext = useGlobalContext();
    const {formError} = props;

    useEffect(() =&gt; {
      globalContext.modifySaveForm(async () =&gt; {
        await submitForm();
      });
      // eslint-disable-next-line react-hooks/exhaustive-deps
    }, []);

    return (
      <form autocomplete="{&quot;off&quot;}" style="{{width:">
        <h3 style="{{textAlign:">Parameters</h3>
        {formError &amp;&amp; <div style="{{marginBottom:">
            <div style="{{textAlign:"></div>
        </div>}

        <table cellpadding="{10}" style="{{borderCollapse:">
          <thead>
          <tr style="{{fontWeight:">
            <th>
              
            </th>
            <th>
              
            </th>
            <th>
              
            </th></tr></thead></table></form>
github SharePoint / sp-dev-fx-webparts / samples / react-mytasks / src / webparts / myTasks / components / EditTask / EditTask.tsx View on Github external
isBlocking: false,
            styles: jsStyles.modalStyles
            //  topOffsetFixed: true
          }}&gt;
          {this.state.isLoading ? (
            
          ) : (
            &lt;&gt;

            

            

              
                {this.state.hasError ? (
                  {this.state.errorMessage}
                ) : (
                  &lt;&gt;
github SharePoint / sp-dev-fx-webparts / samples / react-mytasks / src / Controls / UploadFromSharePoint / UploadFromSharePoint.tsx View on Github external
dialogContentProps={{
            type: DialogType.normal,
            title: strings.DocumentsLabel
          }}
          modalProps={{
            isBlocking: true,
            styles: tsStyles.modalStyles
            //  topOffsetFixed: true
          }}&gt;
          {this.state.isloading ? (
            <div style="{{">
            
            </div>
          ) : (
            &lt;&gt;
              {this.state.hasError &amp;&amp; {this.state.messageError}}
              <div style="{{">
              <label>{this.state.messageInfo}</label>
              
              </div>
github SharePoint / sp-dev-fx-webparts / samples / react-mytasks / src / webparts / myTasks / components / Assigns / Assigns copy.tsx View on Github external
) : (
              
                {this.state.assigns.length &gt; 0 &amp;&amp; (
                  &lt;&gt;
                    <h4 style="{{">Assigned</h4>
                    {this.state.assigns}
                  
                )}

                {(this.state.unAssigns.length &gt; 0 || this.state.hasMoreMembers) &amp;&amp; ( // Has Member or has more pages to load, show unassigns
                  &lt;&gt;
                    <h4 style="{{">Unassigned</h4>

                    {this.state.hasError ? (
                      {this.state.messageError}
                    ) : (
                      
                        {this.state.unAssigns}
                      
                    )}
                  
                )}
              
            )}
github Azure / AIPlatform / end-to-end-solutions / Luna / src / Luna.UI / isv_client / src / routes / Products / Products.tsx View on Github external
})
    values.product.Idlist = idlist.substr(0, idlist.length - 1);
    return idlist.substr(0, idlist.length - 1);
  }

  const selectOnChange = (fieldKey: string, event: React.FormEvent, option?: IDropdownOption, index?: number) =&gt; {
    if (option) {
      setFieldValue(fieldKey, option.key, false);
    }
  };

  const textboxClassName = (props.isNew ? "form_textboxmodal" : "form_textbox");

  return (
    <form autocomplete="{&quot;off&quot;}" style="{{">
      {formError &amp;&amp; <div style="{{">
        <div style="{{"></div>
      </div>}
      
        
        {isNew &amp;&amp;
          
            
              
              <input value="{getidlist()}" name="{'product.Idlist'}" type="hidden"></form>
github microsoft / pai / src / webportal / src / app / job / job-view / fabric / job-detail / components / summary.jsx View on Github external
);
      }
      if (type === 'USER_FAILURE' || type === 'UNKNOWN_FAILURE') {
        result.push(...this.getUserFailureHintItems(jobInfo));
      } else {
        result.push(
          
            Please send the{' '}
            exit diagnostics to
            your administrator for further investigation.
          ,
        );
      }

      return (
        
          <div>{result}</div>
        
      );
    } else if (state === 'Waiting') {
      const resourceRetries = get(jobInfo, 'jobStatus.retryDetails.resource');
      if (resourceRetries &gt;= 3) {
        return (
          
            <div>
              
                {resourceRetries}
              
              
                <div>
                  Please adjust the resource requirement in your{' '}
                  job config, or wait</div></div>
github Azure / AIPlatform / end-to-end-solutions / Luna / src / Luna.UI / isv_client / src / routes / Offers / Parameters.tsx View on Github external
);
        }}
      /&gt;
    );
  }

  const DisplayErrors = (errors) =&gt; {    
    return null;
  };

  return (
    <form autocomplete="{&quot;off&quot;}" style="{{">
      {formError &amp;&amp; <div style="{{">
        <div style="{{"></div>
      </div>}
      
      {parameters}
    
  );
}
</form>
github SharePoint / sp-dev-fx-webparts / samples / react-recaptcha / src / webparts / recaptcha / components / Recaptcha.tsx View on Github external
{
          messageBarType:MessageBarType.success,
          isMultiline:false,
          dismissButtonAriaLabel:"Close"
        },
        "You data has been saved sucessfully"
      );
      //const camContainer = document.getElementById("camContainer")
      ReactDom.render(element2, this._messageContainer);     
    }
    
    else{
      const element2 = React.createElement(
        MessageBar,
        {
          messageBarType:MessageBarType.error,
          isMultiline:false,
          dismissButtonAriaLabel:"Close"
        },
        "Please select captcha."
      );
      //const camContainer = document.getElementById("camContainer")
      ReactDom.render(element2, this._messageContainer);     
    }
  }