Replies: 3 comments 4 replies
-
So I wrapped the component in a component and added my icons to a addons. It is not perfect but works for me.... I added a click listener to the form-bg-addon and that determines which icon was clicked and invokes the action (not ideal but serves the purpose and I can always rip it out later if the DateElement adds controls for clear and also a selection icon.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the suggestion and for the example. |
Beta Was this translation helpful? Give feedback.
-
If you are going to add it as a feature, you could integrate it much cleaner I suspect than the above approach. This was just "what was available to me" via the addons without building a "X" action and moving it on the DOM. It isn't perfect... for example I am currently showing the "X" even when there is no value (I could likely manipulate the element with a watch) |
Beta Was this translation helpful? Give feedback.
-
I noticed there does not appear to be a way to clear a Date using the Date Element. I will work around this for now buy adding a control that will modify the model value to an undefined/null value but this seems like an oversight. Is this worth requesting via the Issues on Vueform? Or am I just missing a setting with this control.
Note I did file #223 in relation to the popup. I see it is using flickr under the covers (which I have used before in other projects)
Beta Was this translation helpful? Give feedback.
All reactions