Browse Source

Small fixes for Context Menu tutorial (#1051)

pull/1066/head
akurasov 3 years ago committed by GitHub
parent
commit
086fca9229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      FEATURES.md
  2. 6
      tutorials/Context_Menu/README.md

3
FEATURES.md

@ -18,6 +18,7 @@
* [Keyboard navigation](tutorials/Tab_Navigation/README.md)
* [Tray, menu bar and notifications](tutorials/Tray_Notifications_MenuBar_new/README.md)
* [Window properties handling](tutorials/Window_API_new/README.md)
* [Context Menu](tutorials/Context_Menu/README.md)
### Features currently available in Compose for Web
* [Intro](tutorials/Web/Building_UI/README.md)
@ -42,4 +43,4 @@ Following limitations apply to Alpha release.
* M1 works only with Gradle 6.4 and 6.5;
* M2 works only with Gradle 6.4 or later (6.7 is the latest tested version).
* M3 works only with Gradle 6.4 or later (6.8 is the latest tested version).
* Alpha works with Gralde 6.7 or later (7.1 is the latest tested version).
* Alpha works with Gradle 6.7 or later (7.1 is the latest tested version).

6
tutorials/ContextMenu/README.md → tutorials/Context_Menu/README.md

@ -75,8 +75,8 @@ fun main() = singleWindowApplication(title = "Context menu") {
```
In this example Text/TextField context menus will be extended with two additional items.
## Context menu for arbitary area
There is possibility to create a context menu for arbitary application window area. This is implemented using ContextMenuArea API that is
## Context menu for an arbitary area
There is a possibility to create a context menu for an arbitary application window area. This is implemented using ContextMenuArea API that is
similar to ContextMenuDataProvider.
```kotlin
@OptIn(ExperimentalComposeUiApi::class, androidx.compose.foundation.ExperimentalFoundationApi::class)
@ -94,4 +94,4 @@ fun main() = singleWindowApplication(title = "Context menu") {
}
}
```
Right click on the Blue Square will show context menu with two items
Right click on the Blue Square will show a context menu with two items
Loading…
Cancel
Save