From 3a99c64afe0e1dfd879a205de77c6ce7c75e30fb Mon Sep 17 00:00:00 2001 From: Atul R Date: Sat, 28 Mar 2020 20:41:28 +0100 Subject: [PATCH] fixes docs --- website/docs/guides/handle-events.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/docs/guides/handle-events.md b/website/docs/guides/handle-events.md index a6126568e..7f02ff4ac 100644 --- a/website/docs/guides/handle-events.md +++ b/website/docs/guides/handle-events.md @@ -15,7 +15,7 @@ Lets see an example to see how this looks in practice. The following example demonstrates how to add an event listener to a button widget. -event example +event example ```javascript const { QMainWindow, QPushButton } = require('@nodegui/nodegui'); @@ -48,8 +48,8 @@ In order to find all the supported events for a widget you can take a look at #### All Signals for the widgets: -- (https://docs.nodegui.org/docs/api/generated/globals/#interfaces)[https://docs.nodegui.org/docs/api/generated/globals/#interfaces] -- (https://docs.nodegui.org/docs/api/generated/globals/#type-aliases)[https://docs.nodegui.org/docs/api/generated/globals/#type-aliases] +- [https://docs.nodegui.org/docs/api/generated/globals/#interfaces](https://docs.nodegui.org/docs/api/generated/globals/#interfaces) +- [https://docs.nodegui.org/docs/api/generated/globals/#type-aliases](https://docs.nodegui.org/docs/api/generated/globals/#type-aliases) You can subscribe to a signal like so: @@ -73,7 +73,7 @@ The value you receive in the callback depends on the signal. Refer to respective #### All common QEvents for the widgets -In nodegui all these common QEvents are represented under an enum type: (WidgetEventTypes)[https://docs.nodegui.org/docs/api/generated/enums/widgeteventtypes] +In nodegui all these common QEvents are represented under an enum type: [WidgetEventTypes](https://docs.nodegui.org/docs/api/generated/enums/widgeteventtypes) You can subscribe to a QEvent like so: @@ -96,7 +96,7 @@ win.show(); global.win = win; ``` -mouse event listener +mouse event listener Note here that every QEvent handler gives a reference to native QEvent in the handler callback. Not all native QEvent wrappers are implemented yet and we might need your help regarding those. Feel free to jump in and contribute to the nodegui core.