This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

MarSch
MarSch

Hello at all,

i think it would be a nice idea to expand inspectors field-types for a colorpicker and a fileupload-field. I am working on a FormWidget where i want to set up / change the values of an object which is generated / updated in this widget. Two of that setup-options are to change the color and to add a picture to this object. Changing the color is already possible by entering the colorcode directly, but it would be more confortable to use their a colorpicker.

Maybe its already possible on other way. Is there a way to inject for example a colorpicker-field by javascript? A normal string-field in the inspector consists of an input - Element. If i could access this Element by Javascript for example like this: $('#InputId').colorpicker() If that would be possible, is there an event triggered as soon as the inspector is visible? The event 'showing.oc.inspector' unfortunately is triggered before the inspector popup/container is visible...

Any Ideas?

Last updated

philipptempel
philipptempel

Color Picker in the docs.

The builder is currently limited to only form fields, not form widgets (as far as I remember) as widgets are a bit more complex to configure and require widget-specific validation. But since the builder is only a visual tool to something you can do with vim, Sublime Text, WordPad, Editor, etc. you can simply follow the docs and voila! (unless I misunderstood your question/problem).

Last updated

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.