Now this works except you're oblige to interact with the set (open then close) in order to work. Because the function is called on ready lifecycle hook but the assets fieldtype is not yet ready (which is why i put if (this.$refs.field).
By opening or closing the set, the replicator will call the function and this time the assets fieldtype will be ready.
Hi, first thanks for the addon, it's really great !
When using inside a replicator, the preview text is
[object Object]
which is not really helpful.It would be great to have the same as the classic assets fieldtype.
So I tried to do this:
v-ref:field
getReplicatorPreviewText
:Now this works except you're oblige to interact with the set (open then close) in order to work. Because the function is called on
ready
lifecycle hook but the assets fieldtype is not yet ready (which is why i putif (this.$refs.field)
. By opening or closing the set, the replicator will call the function and this time the assets fieldtype will be ready.Hope this will help you !