How to use the @ui5/webcomponents-react/lib/PlacementType.PlacementType.Bottom function in @ui5/webcomponents-react

To help you get started, we’ve selected a few @ui5/webcomponents-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 SAP / ui5-webcomponents-react / packages / main / src / webComponents / ShellBar / demo.stories.tsx View on Github external
showCoPilot={boolean('showCoPilot', true)}
      onMenuItemClick={action('onMenuItemClick')}
      onCoPilotClick={action('onCoPilotClick')}
      onLogoClick={action('onLogoClick')}
      onNotificationsClick={action('onNotificationsClick')}
      onProfileClick={action('onProfileClick')}
      onProductSwitchClick={(e) => {
        // @ts-ignore
        document.getElementById('product-switch-popover').openBy(e.getParameter('targetRef'));
      }}
      searchField={null}
      startButton={null}
    >
      
    
    
github SAP / ui5-webcomponents-react / packages / main / src / components / Carousel / CarouselPagination.tsx View on Github external
<div data-value="paginationArrow">
          
        </div>
      
    );
  }

  const paginationClasses = StyleClassHelper.of(classes.pagination);
  if (arrowsPlacement === CarouselArrowsPlacement.Content) {
    paginationClasses.put(classes.paginationArrowContent);
  }
  if (pageIndicatorPlacement === PlacementType.Top) {
    paginationClasses.put(classes.paginationTop);
  }
  if (pageIndicatorPlacement === PlacementType.Bottom) {
    paginationClasses.put(classes.paginationBottom);
  }

  return (
    <div>
      <div data-value="paginationArrow">
        
      </div>

      <div>
        {showPageIndicator &amp;&amp; showTextIndicator &amp;&amp; <label>{`Showing ${activePage + 1} of ${numberOfChildren}`}</label>}

        {showPageIndicator &amp;&amp;
          !showTextIndicator &amp;&amp;
          Children.map(children, (item, index) =&gt; (
            </div></div>
github SAP / ui5-webcomponents-react / packages / main / src / components / AnalyticalTable / ColumnHeader / ColumnHeaderModal.tsx View on Github external
break;
      }
      if (popoverRef.current) {
        popoverRef.current.close();
      }
    },
    [column, popoverRef, onGroupBy]
  );

  return (
    
      
        {showSort &amp;&amp; (
          
            Sort Ascending
          
        )}
        {showSort &amp;&amp; (
          
            Sort Descending
          
        )}
        {showFilter &amp;&amp; !column.isGrouped &amp;&amp; (
github SAP / ui5-webcomponents-react / packages / main / src / components / ActionSheet / index.tsx View on Github external
popoverRef.current.close();
      if (typeof handler === 'function') {
        handler();
      }
    };

    return (
      
        <ul>{Children.map(children, renderActionSheetButton)}</ul>
      
    );
  }
);

ActionSheet.defaultProps = {
  placement: PlacementType.Bottom
};
ActionSheet.displayName = 'ActionSheet';

export { ActionSheet };
github SAP / ui5-webcomponents-react / packages / main / src / components / Carousel / index.tsx View on Github external
}}
      &gt;
        {Children.map(children, (item, index) =&gt; (
          <div style="{{" aria-setsize="{childElementCount}" aria-posinset="{index}" role="listitem">
            {item}
          </div>
        ))}
      
      {childElementCount &gt; 1 &amp;&amp; pageIndicatorPlacement === PlacementType.Bottom &amp;&amp; (
        
      )}
    
  );
});
github SAP / ui5-webcomponents-react / packages / main / src / components / ObjectPage / ObjectPageAnchorButton.tsx View on Github external
);
  } else {
    sectionSelector = (
      <span>
        {section.props.title}
      </span>
    );
  }

  return (
    <li>
      {sectionSelector}
      {subSectionsAvailable &amp;&amp; (
        
          
            {section.props.children
              .filter((item) =&gt; item.props &amp;&amp; item.props.isSubSection)
              .map(renderSubSectionListItem)}
          
        
      )}
    </li>
  );
};
github SAP / ui5-webcomponents-react / packages / main / src / components / Carousel / demo.stories.tsx View on Github external
export const renderCarousel = () =&gt; {
  return (
    
      <label>Carousel 1. This is the content of the Carousel.</label>
      <div>
        <p>This is a larger content</p>
        <br>
        <p>This is a larger content</p>
      </div>
      <label>Carousel 2</label>
      <label>Carousel 3</label>
      <label>Carousel 4</label>
      <label>Carousel 5</label>
    
  );
};
github SAP / ui5-webcomponents-react / packages / main / src / components / VariantManagement / index.tsx View on Github external
&gt;
              {item.label}
            
          ))}
        
      
    );
  }
);

VariantManagement.defaultProps = {
  popupTitle: 'Variants',
  initialSelectedKey: null,
  onSelect: () =&gt; {},
  closeOnItemSelect: true,
  placement: PlacementType.Bottom,
  level: TitleLevel.H4,
  disabled: false
};
VariantManagement.displayName = 'Variant Management';

export { VariantManagement };
github SAP / ui5-webcomponents-react / packages / main / src / components / Carousel / index.tsx View on Github external
/&gt;
      )}
    
  );
});

Carousel.displayName = 'Carousel';
Carousel.defaultProps = {
  activePage: 0,
  arrowsPlacement: CarouselArrowsPlacement.Content,
  onPageChanged: () =&gt; {},
  height: '100%',
  width: '100%',
  showPageIndicator: true,
  loop: false,
  pageIndicatorPlacement: PlacementType.Bottom
};

export { Carousel };

@ui5/webcomponents-react

React Wrapper for UI5 Web Components and additional components

Apache-2.0
Latest version published 4 days ago

Package Health Score

90 / 100
Full package analysis

Similar packages