citadel-realms/js/RealmInfoEntry.js
2024-11-12 17:12:37 -05:00

21 lines
534 B
JavaScript

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);
})();