Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork98
Multi-user form editing#452
-
I have forms that several users could edit similtaniously. @adamberecz do you have any suggestions how could I implement highlighting, with user name possible, on each element that is focussed now by other user? Might you have other suggestions or improvments? |
BetaWas this translation helpful?Give feedback.
All reactions
For one,here's how you can track the selected element:
<scriptsetup>import{ref,onMounted,watch,computed}from'vue';constbuilder$=ref();constselectedElement=computed(()=>{returnbuilder$.value?.selectedElement;});watch(selectedElement,alert);</script><template><divid="app"class="h-screen"><VueformBuilderref="builder$"/></div></template>
I am trying to think of ways you can reliably add class + DOM to an element's layout externally, but I couldn't so far. Overriding theElementLayout
's template for different element types is how the builder adds those remove/clone/etc actions, name tag and so on and that would be the most straightforward way. …
Replies: 1 comment 4 replies
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
For one,here's how you can track the selected element: <scriptsetup>import{ref,onMounted,watch,computed}from'vue';constbuilder$=ref();constselectedElement=computed(()=>{returnbuilder$.value?.selectedElement;});watch(selectedElement,alert);</script><template><divid="app"class="h-screen"><VueformBuilderref="builder$"/></div></template> I am trying to think of ways you can reliably add class + DOM to an element's layout externally, but I couldn't so far. Overriding the Syncing can probably be managed, but I would expect pitfalls along the way. The builder was not made with live collaboration capabilities in mind, so probably tweaking the source would be needed in multiple places. I am moving this to builder repo, because it's more related to that. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Thanks@adamberecz, for rapidly answer. One thing: I need |
BetaWas this translation helpful?Give feedback.
All reactions
-
Ahh, now that I read it again I can see the builder isn't mentioned (just assumed for some reason). Moving it back. Yes, I can confirm that having a custom |
BetaWas this translation helpful?Give feedback.
All reactions
-
@adamberecz How could I inject a custom ElementLayout template to all elements? WIth a plugin? How plugins slow down the VueForm? |
BetaWas this translation helpful?Give feedback.
All reactions
-
You create aplugin to add business logic to components like props & methods. You canreplace the |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1