mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2026-03-13 05:36:45 +00:00
first commit
This commit is contained in:
@@ -43,15 +43,17 @@ class HomeAssistantNumericPicker extends WatchUi.Picker {
|
|||||||
step = 1.0;
|
step = 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
WatchUi.Picker.initialize({
|
WatchUi.Picker.initialize(
|
||||||
:title => new WatchUi.Text({
|
new WatchUi.Text({
|
||||||
:text => haItem.getLabel(),
|
:text => haItem.getLabel(),
|
||||||
:locX => WatchUi.LAYOUT_HALIGN_CENTER,
|
:locX => WatchUi.LAYOUT_HALIGN_CENTER,
|
||||||
:locY => WatchUi.LAYOUT_VALIGN_BOTTOM
|
:locY => WatchUi.LAYOUT_VALIGN_BOTTOM
|
||||||
}),
|
}),
|
||||||
:pattern => [factory],
|
[factory],
|
||||||
|
{
|
||||||
:defaults => [((val - min) / step).toNumber()]
|
:defaults => [((val - min) / step).toNumber()]
|
||||||
});
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Called when the user has completed picking.
|
//! Called when the user has completed picking.
|
||||||
|
|||||||
Reference in New Issue
Block a user