Skip to content

Commit

Permalink
[UIK-2326][website] removed renderFunction example in ddmenu (#1777)
Browse files Browse the repository at this point in the history
<!--- Provide a general summary of your changes in the Title above -->

## Motivation and Context

<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->

## How has this been tested?
Manually
<!--- Please describe in detail how you tested your changes. -->
<!--- For example: -->
<!--- I have added unit tests -->
<!--- I have added Voice Over tests -->
<!--- Code cannot be tested automatically so I have tested it only
manually -->

## Screenshots (if appropriate):

## Types of changes

<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->

- [ ] Bug fix (non-breaking change which fixes an issue).
- [ ] New feature (non-breaking change which adds functionality).
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected).
- [X] Nice improve.

## Checklist:

<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->

- [X] My code follows the code style of this project.
- [X] I have updated the documentation accordingly or it's not required.
- [X] Unit tests are not broken.
- [X] I have added changelog note to corresponding `CHANGELOG.md` file
with planned publish date.
- [ ] I have added new unit tests on added of fixed functionality.
  • Loading branch information
ilyabrower authored Nov 18, 2024
1 parent ca541b3 commit 380f175
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import ItemActionsExample from './docs-examples/item_actions';
import ListItemTypesExample from './docs-examples/list_item_types';
import NestedExample from './docs-examples/nested';
import NestedWithFocusableExample from './docs-examples/nested_with_focusable';
import RenderFunctionExample from './docs-examples/render_function';
import TheSecondMethodExample from './docs-examples/the_second_method';

const meta: Meta<typeof DropdownMenu> = {
Expand Down Expand Up @@ -43,10 +42,6 @@ export const NestedWithFocusable: Story = {
render: NestedWithFocusableExample,
};

export const RenderFunction: Story = {
render: RenderFunctionExample,
};

export const TheSecondMethod: Story = {
render: TheSecondMethodExample,
};

This file was deleted.

14 changes: 0 additions & 14 deletions website/docs/components/dropdown-menu/dropdown-menu-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,6 @@ The component offers several options for laying out list item types:

:::

## Render-function

Like with lower-level components, you can access the component's logic by passing a render function into the body.

You can find the list of available methods in the [Context section of the API](/components/dropdown-menu/dropdown-menu-api#context).

::: sandbox

<script lang="tsx">
export Demo from 'stories/components/dropdown-menu/__stories__/docs-examples/render_function.tsx';
</script>

:::

## Nested menus

::: sandbox
Expand Down

0 comments on commit 380f175

Please sign in to comment.