How to use the react-md/lib/SelectFields.Positions function in react-md

To help you get started, we’ve selected a few react-md 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 Azure / ibex-dashboard / client / src / components / Card / Settings / Settings.tsx View on Github external
let query = '';

    let mode = 'text';

    let dataActions = null;
    let queryActions = null;

    if (exportData && exportData.length > 0) {
      const options = exportData.map(item => item.id);
      const selectedValue = options[selectedIndex];
      actions = options.length > 1 ? [
        (
           SettingsActions.selectIndex(index)}
            tabIndex={-1}
            toolbar
          />
        )
      ] : <button style="{{" label="{selectedValue}" disabled="">;

      const selected: IExportData = exportData[selectedIndex];

      // data
      const data = selected.data;
      switch (typeof data) {
        case 'object':
          json = data ? JSON.stringify(data, null, 2) : 'null';</button>
github zeit / next.js / examples / with-react-md / pages / index.js View on Github external
src={avatarSrc}
    role="presentation"
    iconSized
    style={{
      alignSelf: 'center',
      marginLeft: 16,
      marginRight: 16,
      flexShrink: 0,
    }}
  /&gt;,
  ,
]

class NavigationLink extends PureComponent {
  // NOTE: Don't try using Stateless (function) component here. `ref` is
  // required by React-MD/AccessibleFakeButton, but Stateless components
  // don't have one by design:
  // https://github.com/facebook/react/issues/4936
  render() {
    const { href, as, children, ..._props } = this.props
    return (
      <div style="{{">
        
          </div>
github webdevstar / Dashborad / src / components / generic / TextFilter.tsx View on Github external
render() {
    var { selectedValue, values } = this.state;
    values = values || [];

    // var buttons = values.map((value, idx) =&gt; {
    //   return <button label="{value}">
    // })

    return (
        
    );
  }
}</button>
github Azure / ibex-dashboard / client / src / components / Dashboard / Editor / Editor.tsx View on Github external
render() {
    const { visible, value, selectedTheme, saveDisabled } = this.state;
    const theme = themes[selectedTheme];
    const saveLabel = !saveDisabled ? 'Save' : 'Fix errors';
    const saveClass = !saveDisabled ? 'pass' : 'fail';
    const actionButtons = [
      (
         EditorActions.selectTheme(index)}
          tabIndex={-1}
        /&gt;
      ),
      <button tabindex="{-1}">undo</button>,
      <button tabindex="{-1}">redo</button>,
      <button tabindex="{-1}">content_copy</button>,
      (
github mlaursen / react-md / documentation / src / shared / components / navigation-drawers / SimpleExample.jsx View on Github external
const avatarSrc = randomImage();

const drawerHeaderChildren = [
  ,
  ,
];

export default class SimpleExample extends PureComponent {
  constructor(props) {
    super(props);

    this.state = { isOpen: false, dialog: null, key: inboxListItems[0].key };
    this._setPage = this._setPage.bind(this);
    this._findContent = this._findContent.bind(this);
    this._openDemo = this._openDemo.bind(this);
    this._closeDemo = this._closeDemo.bind(this);
    this._navItems = inboxListItems.map(item =&gt; {
      if (!item.divider) {
        item.onClick = () =&gt; this._setPage(item.key);
github CatalystCode / ibex-dashboard-apollo-graphql / client / src / components / Dashboard / index.tsx View on Github external
{renderHTML(infoHtml)}
          
        
        
        <dialog placeholder="File format" style="{{" title="{(" id="downloadData">
              )}
            /&gt;
          )}
          visible={askDownload}
          focusOnMount={false}
          onHide={this.onCloseExport}
          dialogStyle={{ width: '80%' }}
          contentStyle={{ marginTop: '20px' }}
        &gt;
          
            {downloadItems}
          </dialog>
github mlaursen / react-md / docs / src / shared / components / ReactMD / file-inputs / FileConverterExample.jsx View on Github external
if (visible) {
      dialogProps.children = [
        ,
        <span>{progress}%</span>,
      ];
    }

    return (
      <form>
        
        
        <div>
          </div></form>
github mlaursen / react-md / documentation / src / shared / components / select-fields / SelectFieldButtonExamples.jsx View on Github external
render() {
    return (
      <div>
        
        
        <p>
          Make sure to use the select field button version of the select field
          inside of a toolbar or a table for correct styling.
        </p>
      </div>
    );
  }
github webdevstar / Dashborad / src / components / Navbar / index.tsx View on Github external
(
    
  ),
  (
    
  )
];

export default class Navbar extends React.Component {
  constructor(props: any) {
    super(props);

    this.state = AccountStore.getState();
    AccountStore.listen((state) =&gt; {
      this.setState(state);
    });
    AccountActions.updateAccount();
  }