I have a template node in Node-Red Flowfuse dashboard 2.0 (Latest versions as of posting)
<template>
<v-container>
<v-row justify="space-around">
<v-date-picker v-model="value"
show-adjacent-months
hide-header="true"
@update:model-value="send({payload: value})">
</v-date-picker>
</v-row>
</v-container>
</template>
The template above works just fine, sending out a date as an epoch value.
I am aware that the <Script>
section is missing here but adding it, empty at least, stops the component from rendering.
From the documentation I can see that when a message arrives it will be placed in a variable {{msg}}
which can the be rendered within an HTML tag for example but for the life of me I cant see how to set the current date in v-date-picker based on {{msg}}
Also...
The component renders oddly and although I have played with several sizing properties I cant get it to look as it should.
Ideally, actual circles would be nice, which is what the examples show and I would like to make the entire thing more compact if possible.
I am assuming the binding v-model="value"
works both ways so I probably need something like value = msg.payload
but I am also assuming that needs to be in some sort of event/trigger wrapper and I have no idea with respect to syntax?
Can anyone give me a leg up?