Skip to content

Commit 257d84c

Browse files
authored
Merge pull request #43 from dpalou/MOBILE-4829
[docs] app: Document new displayinusermenu option
2 parents 088cef1 + 5e61d16 commit 257d84c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

general/app/development/plugins-development-guide/api-reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ Add new option in the user profile page.
247247
| `type` | `'listitem'` | Visual representation of the option, accepted values are `listitem` and `button`. <br /> <br /> Before 4.4, the accepted values were `newpage` and `communication` (`newpage` was the default). |
248248
| `priority` | `0` | Priority of the handler, higher priority options are displayed first. |
249249
| `ptrenabled` | `true` | Whether to enable the PTR (pull-to-refresh) gesture in the page. |
250+
| `displayinusermenu` | - | Whether to display the option in the user menu (the menu displayed when the user clicks his own avatar at the top-right or top-left). Accepted values are: <ul><li>`no`: don't display the option in user menu.</li><li>`yes`: display the option in user menu. It will also be displayed in user profiles (like course participants) depending on the restrictions.</li><li>`only`: display the option only in user menu and never in user profiles.</li></ul>If not set, the option will be displayed in the user menu depending on the restricted courses and users. <br /> <br /> Only available in 5.1+. |
250251

251252
### CoreCourseFormatDelegate
252253

general/development/policies/codingstyle-moodleapp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ export class MyComponent {
449449

450450
```ts
451451

452-
export class MyService {
452+
export class MyComponent {
453453

454454
protected readonly MY_CONSTANT = '...';
455455

0 commit comments

Comments
 (0)