-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to pass configuration to Provider Setting #1334
Comments
Yes, this is supported, as is the persisting of complex properties as raised in #1335 - we do this for various settings that are used in the field and workflow types that come out of the box. The relevant part of the documentation is here. In summary you need to implement a "setting value converter" on the client. This is responsible for converting the prevalues you have on the setting into the configuration needed for the property value editor. It's also used to convert the value that is emitted from the editor into a value for persistence. So based on your description, the following is something like what you'll need:
I'll close the issue but feel free to come back if you have trouble getting it working. |
Hi! Thanks @AndyButland! Not sure if this would work from another package without having typescript types to import?
VS Code complains because it does not recognize the Another thing about the docs: I stent a fair amount of time yesterday looking for details about this but it's not at all mentioned on this page: https://docs.umbraco.com/umbraco-forms/developer/extending/adding-a-type/setting-types which is the place where someone who is looking to add settings to a Provider would end up so I think it would make sense to move and/or mention the information about Update const pickerSettingsValueConverter : UmbExtensionManifest = {
type: "formsSettingValueConverter",
alias: "My.Property.SettinsValueConverter",
name: "My Settings Value Converter",
//@ts-ignore
propertyEditorUiAlias: "My.PropertyEditorUI",
api: PickerSettingValueConverter,
} Using |
We're working currently on an npm package as that would make this and other client-side extensions easier certainly. But as you've found you don't strictly need it so long as what you register matches what's expected. In my sample above I'm just not using the I'll have a look at the docs and see if we can at least point out the additional information from the page you were looking at. |
Hi! Thanks @AndyButland =D You're right, I added Looking forward to the npm package :) Thanks for the swift feedback and the help! // Markus |
On 15.0.3
I'm trying to pass configuration to a Property Editor UI. In my case i need to pass a "min/max" value.
I've tried this but it does not work:
Wondering if this is supported?
The text was updated successfully, but these errors were encountered: