-
-
Notifications
You must be signed in to change notification settings - Fork 90
Closed
Labels
Description
Let's add a WebView library entry.
Here is a quick example, if possible let's use UI to create the WebView object instead
import WebKit from "gi://WebKit?version=6.0";
const web_view = new WebKit.WebView();
web_view.load_uri("https://gnome.org/");
workbench.preview(web_view);Unfortunately the documentation at https://webkitgtk.org/reference/webkit2gtk/stable/ isn't up to date (4.1 instead of 6.0) but on Fedora you can install the correct documentation with sudo dnf install webkitgtk6.0-doc and read it with DevHelp
Let's look at important properties/methods too and add a few controls (without replicating a full fledge web browser).
Such as url bar, next/previous buttons and so on.