Closed Balssh closed 10 months ago
Figured it out eventually. The way it works is:
const WeatherRevealer = () =>
PanelButton({
class_name: "weather",
content: Widget.Box({
children: [
Widget.Box().hook(WeatherService, (box) => {
box.children = [
HoverRevealer({
indicator: Widget.Label({
binds: [["label", WeatherService, "city"]],
}),
child: Widget.Label({
binds: [
[
"label",
WeatherService,
"weather_data",
(data) => data.current_condition[0].FeelsLikeC + "°C",
],
],
}),
}),
];
}),
],
}),
});
Hi again, I've been wanting to add a weather widget to a fork of this dots, but I struggle with the HoverRevealer component. The code I have now is something like this:
No matter how I tried I couldn't get the hover to expand on mouse hover over it, yet the connection callback works as expected. Am I missing something?