You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In GJS it's possible to add a XML template to a custom widget, as explained in the documentation.
Luckily, in GJS it is quite simple to load a user interface template
/* imports */GObject.registerClass({Template: 'url://templateurl',InternalChildren: ['button']// Array of IDs},classXextendsGObject.Object{/* implementation */});
Now you can access the button like this :
this._button.do_something();
This is really useful and lacks in node-gtk, Would it be possible to have a different gi.registerClass, which behave as now when 1 parameter is passed, and behave like described above when 2 are ?
The text was updated successfully, but these errors were encountered:
Hello,
In GJS it's possible to add a XML template to a custom widget, as explained in the documentation.
This is really useful and lacks in node-gtk, Would it be possible to have a different
gi.registerClass
, which behave as now when 1 parameter is passed, and behave like described above when 2 are ?The text was updated successfully, but these errors were encountered: