mapcomplete/test.ts

30 lines
686 B
TypeScript
Raw Normal View History

2020-10-04 01:04:46 +02:00
//*
2020-10-06 01:37:02 +02:00
import OpeningHoursPicker from "./UI/Input/OpeningHours/OpeningHoursPicker";
import {VariableUiElement} from "./UI/Base/VariableUIElement";
import {OH} from "./Logic/OpeningHours";
2020-10-06 01:37:02 +02:00
const picker = new OpeningHoursPicker();
new VariableUiElement(picker.GetValue().map(OH.ToString)).AttachTo("extradiv");
picker.AttachTo("maindiv");
2020-10-04 01:04:46 +02:00
2020-10-06 01:37:02 +02:00
window.setTimeout(() => {
picker.GetValue().setData([{
weekday: 1,
startHour: 11,
startMinutes: 0,
endHour: 17,
endMinutes: 0
}]);
}, 1000)
/*/
import {Utils} from "./Utils";
import {FixedUiElement} from "./UI/Base/FixedUiElement";
Utils.generateStats((stats) => {
2020-10-06 01:37:02 +02:00
new FixedUiElement(stats).AttachTo('maindiv')
})
//*/