@ui5/webcomponents-react
Version:
React Wrapper for UI5 Web Components and additional components
45 lines (44 loc) • 1.41 kB
TypeScript
import type { CommonProps } from '../../types/index.js';
interface ObjectPageAnchorBarPropTypes extends CommonProps {
/**
* Determines if the header content is visible.
*/
headerContentVisible: boolean;
/**
* Defines if the pin button is hidden.
*/
hidePinButton: boolean;
/**
* Determines if the header is initially pinned .
*/
headerPinned?: boolean;
/**
* Set the header to the state pinned.
*/
setHeaderPinned?: (payload: any) => void;
/**
* Toggles the header content to be hidden or visible .
*/
onToggleHeaderContentVisibility: (e: any) => void;
/**
* Highlight title when hovered.
*/
onHoverToggleButton?: (e: any) => void;
/**
* Defines internally used accessibility properties/attributes.
*/
accessibilityAttributes?: {
objectPageAnchorBar?: {
role?: string;
};
};
/**
* Fired when the `headerContent` changes its pinned state.
*/
onPinButtonToggle?: (pinned: boolean) => void;
}
/**
* The `ObjectPageAnchorBar` bar contains the expand/collapse (expands or collapses the header content) and pin button (pins the content header).
*/
declare const ObjectPageAnchorBar: import("react").ForwardRefExoticComponent<ObjectPageAnchorBarPropTypes & import("react").RefAttributes<HTMLElement>>;
export { ObjectPageAnchorBar };