How to use the elm.DaySelector function in elm

To help you get started, we’ve selected a few elm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kakaroto / e17 / PROTO / elev8 / data / javascript / dayselector.js View on Github external
}),
                australia: elm.DaySelector({
                    weight: EXPAND_BOTH,
                    align: FILL_BOTH,
                    week_start: 1,
                    saturday: true,
                    tuesday: true,
                    wednesday: true,
                    thursday: true,
                    friday: true,
                    sunday: true,
                    on_change: function(arg) {
                        print("Day changed");
                    }
                }),
                usa: elm.DaySelector({
                    weight: EXPAND_BOTH,
                    align: FILL_BOTH,
                    week_start: 0,
                    monday: true,
                    tuesday: true,
                    wednesday: true,
                    thursday: true,
                    friday: true,
                    saturday: true,
                    on_change: function(arg) {
                        print("Day changed");
                    }
                })
            }
        })
    },
github kakaroto / e17 / PROTO / elev8 / data / javascript / dayselector.js View on Github external
elements: {
                dubai: elm.DaySelector({
                    weight: EXPAND_BOTH,
                    align: FILL_BOTH,
                    week_start: 6,
                    monday: true,
                    tuesday: true,
                    wednesday: true,
                    thursday: true,
                    friday: true,
                    sunday: true,
                    on_change: function(arg) {
                        print("Day changed");
                    }
                }),
                australia: elm.DaySelector({
                    weight: EXPAND_BOTH,
                    align: FILL_BOTH,
                    week_start: 1,
                    saturday: true,
                    tuesday: true,
                    wednesday: true,
                    thursday: true,
                    friday: true,
                    sunday: true,
                    on_change: function(arg) {
                        print("Day changed");
                    }
                }),
                usa: elm.DaySelector({
                    weight: EXPAND_BOTH,
                    align: FILL_BOTH,
github kakaroto / e17 / PROTO / elev8 / data / javascript / dayselector.js View on Github external
var w = elm.realise(elm.Window({
    label: "Day Selector Demo",
    width: 320,
    height: 480,
    align: FILL_BOTH,
    elements: {
        the_background: elm.Background({
            weight: EXPAND_BOTH,
            align: FILL_BOTH,
            resize: true
        }),
        the_box: elm.Box({
            weight: EXPAND_BOTH,
            resize: true,
            elements: {
                dubai: elm.DaySelector({
                    weight: EXPAND_BOTH,
                    align: FILL_BOTH,
                    week_start: 6,
                    monday: true,
                    tuesday: true,
                    wednesday: true,
                    thursday: true,
                    friday: true,
                    sunday: true,
                    on_change: function(arg) {
                        print("Day changed");
                    }
                }),
                australia: elm.DaySelector({
                    weight: EXPAND_BOTH,
                    align: FILL_BOTH,