Skip to content

New field type : source code #419

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

Closed
gwenaelp opened this issue Mar 18, 2018 · 2 comments
Closed

New field type : source code #419

gwenaelp opened this issue Mar 18, 2018 · 2 comments

Comments

@gwenaelp
Copy link
Contributor

To allow people type source code in a better way in the forms, I have made a custom field, and I would like to register it to the list of available custom fields.

Preview

preview

Links

Repo : https://github.com/gwenaelp/vfg-field-sourcecode
NPM : https://www.npmjs.com/package/vfg-field-sourcecode

At the moment, it highlights all files as ".vue" files. I'm looking for ideas to be able to load the good syntax according to what has been set up in the schemas (have that kind of line, but dynamic : https://github.com/gwenaelp/vfg-field-sourcecode/blob/master/src/components/field-sourcecode.vue#L8). I'm still looking for ideas for that, so if you have one, let me know!

More custom fields to come! =D

@lionel-bijaoui
Copy link
Member

Thanks a lot ! You are the first custom field (as far as I know).
We are in the process of updating to the v3 so be aware some changes might be needed.

@zoul0813
Copy link
Member

Looks good.

I added the documentation tag to this issue, your field should be added to the README under the "Public Custom Fields" section.

zoul0813 added a commit that referenced this issue Mar 20, 2018
closes #419, #420 - links to new public custom fields
zoul0813 added a commit to zoul0813/vue-form-generator that referenced this issue Apr 22, 2018
* feature/434-validateBeforeSubmit:
  closes vue-generators#434, vue-generators#408 - added $event to onValidationError and call preventDefault when onValidateBeforeSubmit is true
  fieldUpload.vue: rename event to
  Fix vue-generators#422 fieldUpload  event throws ReferenceError in Firefox
  Fix NaN with value 0 on input type number/range.
  closes vue-generators#419, vue-generators#420 - links to new public custom fields
  Add issue and PR template
  2.2.1 releases
  setup automate releasing
  ...
  vue-generators#409 - fixed id property in fieldUpdate

# Conflicts:
#	dist/vfg-core.css
#	dist/vfg-core.js
#	dist/vfg.css
#	dist/vfg.js
#	package-lock.json
#	package.json
#	src/fields/core/fieldUpload.vue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants