Gtk.Builder.prototype.expose_object

function expose_object(name:String, object:GObject.Object):void {
    // Gjs wrapper for gtk_builder_expose_object()
}

Add object to the builder object pool so it can be referenced just like any other object built by builder.

Since 3.8

name

the name of the object exposed to the builder

object

the object to expose