@patternfly/react-core APIs
- Button
- Title
- Spinner
- EmptyState
- EmptyStateIcon
- EmptyStateBody
- Stack
- StackItem
- TextInput
- Bullseye
- Modal
- FormGroup
- Card
- CardBody
- Flex
- Text
- Form
- Split
- SplitItem
- Tooltip
- PageSection
- FlexItem
- Grid
- GridItem
- Pagination
- Dropdown
- DropdownItem
- Label
- Page
- TextContent
- TextVariants
- Checkbox
- InputGroup
- DropdownToggle
- Popover
- Breadcrumb
- BreadcrumbItem
- Tabs
- Tab
- TabTitleText
- Alert
- Toolbar
- CardTitle
- KebabToggle
- DataList
- DataListCell
- DataListItem
- DataListItemCells
- DataListItemRow
- TextArea
- ActionGroup
- PageSectionVariants
- FormSelect
- FormSelectOption
- ToolbarItem
- ToolbarContent
- Select
- SelectOption
- ChipGroup
- Chip
- DropdownPosition
- CardFooter
- EmptyStateSecondaryActions
- PaginationVariant
- ModalVariant
- AlertGroup
- Switch
- CardHeader
- DatePicker
- Wizard
- DropdownToggleCheckbox
- ExpandableSection
- LabelGroup
- TextListItem
- TextList
- Skeleton
- ClipboardCopy
- ToggleGroup
- ToggleGroupItem
- AlertActionCloseButton
- AlertActionLink
- AlertVariant
- Badge
- Radio
- Nav
- NavList
- ValidatedOptions
- Brand
- PageHeader
- PageHeaderTools
- PageHeaderToolsItem
- PageSidebar
- WizardContextConsumer
- EmptyStatePrimary
- BreadcrumbHeading
- TextListVariants
- TextListItemVariants
- Backdrop
- HelperText
- HelperTextItem
- Gallery
- GalleryItem
- ModalBoxFooter
- DualListSelector
- DualListSelectorPane
- DualListSelectorList
- DualListSelectorListItem
- DualListSelectorControlsWrapper
- DualListSelectorControl
- InputGroupText
- Divider
- SearchInput
- PopoverPosition
- FormHelperText
- EmptyStateVariant
- DescriptionList
- DescriptionListGroup
- DescriptionListTerm
- DescriptionListDescription
- TooltipPosition
- SelectVariant
- AboutModal
- PageHeaderToolsGroup
- TabTitleIcon
- DropdownDirection
- FormAlert
- LoginMainFooterBandItem
- LoginPage
- LoginMainFooterLinksItem
- DataListAction
- CardActions
- NavItem
- ApplicationLauncher
- ApplicationLauncherItem
- ApplicationLauncherGroup
- NavExpandable
OtherRelated APIs
@patternfly/react-core#ApplicationLauncher JavaScript Examples
The following examples show how to use
@patternfly/react-core#ApplicationLauncher.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Launcher.js From operate-first.github.io-old with GNU General Public License v3.0 | 5 votes |
Launcher = () => {
const [isOpen, setIsOpen] = useState(false);
const {
site: {
siteMetadata: { clusters },
},
} = useStaticQuery(
graphql`
query {
site {
siteMetadata {
clusters {
name
clusters {
name
url
}
}
}
}
}
`
);
return (
<ApplicationLauncher
onSelect={() => setIsOpen(!isOpen)}
onToggle={(v) => setIsOpen(v)}
position={DropdownPosition.right}
isOpen={isOpen}
items={clusters.map((group) => (
<ApplicationLauncherGroup label={group.name} key={group.name}>
{group.clusters.map((cluster) => (
<ApplicationLauncherItem
key={cluster.name}
isExternal
href={cluster.url}
icon={<OpenshiftIcon color="red" />}
>
{cluster.name} - Red Hat OpenShift Console
</ApplicationLauncherItem>
))}
</ApplicationLauncherGroup>
))}
isGrouped
/>
);
}