citadel-realms/js/RealmInfoEntry.js

21 lines
534 B
JavaScript
Raw Normal View History

2024-11-12 17:12:37 -05:00
var _a;
import GObject from 'gi://GObject';
import Gtk from 'gi://Gtk?version=4.0';
export class RealmInfoEntry extends Gtk.Box {
constructor(name) {
super();
this._nameLabel.label = name;
}
setValue(value) {
this._valueLabel.label = value;
}
}
_a = RealmInfoEntry;
(() => {
GObject.registerClass({
GTypeName: "RealmInfoEntry",
Template: 'resource:///com/subgraph/citadel/Realms/ui/RealmInfoEntry.ui',
InternalChildren: ['nameLabel', 'valueLabel']
}, _a);
})();