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