How to use the storybook/constants/siteConstants.DOCUMENTATION_URL.PATTERNFLY_ORG_CONTENT_VIEWS function in storybook

To help you get started, we’ve selected a few storybook 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 patternfly / patternfly-react / packages / patternfly-react / src / components / Table / Stories / ClientSortableTableStory.js View on Github external
})(() => {
      const story = ;
      return inlineTemplate({
        title: 'Client Sortable Table',
        documentationLink: `${DOCUMENTATION_URL.PATTERNFLY_ORG_CONTENT_VIEWS}table-view/`,
        story,
        description: reactabularDescription
      });
    })
  );
github patternfly / patternfly-react / packages / patternfly-react / src / components / Table / Stories / BootstrapTableStory.js View on Github external
/>
          

          <h3>Responsive Tables</h3>
          <div>
            
              
              
            
          </div>
        
      );

      return inlineTemplate({
        title: 'Bootstrap Table Styles',
        documentationLink: `${DOCUMENTATION_URL.PATTERNFLY_ORG_CONTENT_VIEWS}table-view/`,
        story,
        description: reactabularDescription
      });
    })
  );
github patternfly / patternfly-react / packages / patternfly-react / src / components / Table / Stories / PatternflyTableStory.js View on Github external
withInfo()(() =&gt; {
      const story = (
        <div>
          <h2>PatternFly recommendation: Bootstrap striped, bordered, hover, and responsive</h2>
          
            
            
          
        </div>
      );
      return inlineTemplate({
        title: 'PatternFly Table Styles',
        documentationLink: `${DOCUMENTATION_URL.PATTERNFLY_ORG_CONTENT_VIEWS}table-view/`,
        story,
        description: reactabularDescription
      });
    })
  );
github patternfly / patternfly-react / packages / patternfly-3 / patternfly-react / src / components / ListView / ListView.stories.js View on Github external
import { storybookPackageName, DOCUMENTATION_URL, STORYBOOK_CATEGORY } from 'storybook/constants/siteConstants';
import { Button } from '../Button';
import { DropdownKebab } from '../DropdownKebab';
import { Icon } from '../Icon';
import { MenuItem } from '../MenuItem';
import { ListView } from './index';
import { MockCompoundExpansion, MockCompoundExpansionSource } from './__mocks__/mockCompoundExpansionExample';
import { mockListItems } from './__mocks__/mockListItems';
import { name } from '../../../package.json';

const stories = storiesOf(`${storybookPackageName(name)}/${STORYBOOK_CATEGORY.CONTENT_VIEWS}/List View`, module);
stories.addDecorator(withKnobs);
stories.addDecorator(
  defaultTemplate({
    title: 'ListView',
    documentationLink: `${DOCUMENTATION_URL.PATTERNFLY_ORG_CONTENT_VIEWS}list-view/`
  })
);

const renderActions = () =&gt; (
  <div>
    <button>Details</button>
  </div>
);

const renderAdditionalInfoItems = itemProperties =&gt;
  itemProperties &amp;&amp;
  Object.keys(itemProperties).map(prop =&gt; {
    const cssClassNames = classNames('pficon', {
      'pficon-flavor': prop === 'hosts',
      'pficon-cluster': prop === 'clusters',
      'pficon-container-node': prop === 'nodes',
github patternfly / patternfly-react / packages / patternfly-react / src / components / Table / Stories / ServerPaginationTableStory.js View on Github external
})(() =&gt; {
      const logAction = decorateAction([args =&gt; args]);
      const story = ;
      return inlineTemplate({
        title: 'Server Paginated Table',
        documentationLink: `${DOCUMENTATION_URL.PATTERNFLY_ORG_CONTENT_VIEWS}table-view/`,
        story,
        description: reactabularDescription
      });
    })
  );
github patternfly / patternfly-react / packages / patternfly-react / src / components / Table / Stories / ClientPaginationTableStory.js View on Github external
})(() =&gt; {
      const logAction = decorateAction([args =&gt; args]);
      const story = ;
      return inlineTemplate({
        title: 'Client Paginated Table',
        documentationLink: `${DOCUMENTATION_URL.PATTERNFLY_ORG_CONTENT_VIEWS}table-view/`,
        story,
        description: reactabularDescription
      });
    })
  );