question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

typeUserAttrs: some Values got broken since an earlier Version

See original GitHub issue

Description:

i was using an earlier version of formBuilder from around the end of 2017/ start of 2018. In there i used the an object to inject values via typeUserAttrs. This worked well for me. Now, with the current version (3.1.2) this got broken 😦

(btw. from the documentation doesn’t give information about which options i can change. It would be nice of you, if you could enhance the documentation in this regard.)

Environment Details:

  • formBuilder Version: 3.1.2
  • Browser: chrome
  • OS: Win10

Expected Behavior

the header component accepts additional attributes: id and name

Actual Behavior

it doesn’t

Steps to Reproduce

var options = {
    typeUserAttrs: {
        header: {
    	    id: {
    	        label: 'id'
    	    },
    	    name: {
                label: 'name'
    	    }
        }
    }
}
var fbEditor = document.getElementById(divName);	
$(fbEditor).formBuilder(options);

this is just an excerpt. if more informations are needed i will gladly provide them. Also i do this for several more components such as paragraph.

Screenshot - (optional)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
kevinchappellcommented, Jan 24, 2019

@Tabssummulani spot on.

Looks like the documentation needs updating. will look further into this over the weekend.

0reactions
Jojoshuacommented, Mar 24, 2022

I assume this got done, closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

kevinchappell/formBuilder - Gitter
It seems I can maybe mimic that behavior using typeUserAttrs and typeUserEvents ... attributes like helper text, required checkbox, value, type, etc.
Read more >
typeUserAttrs - jQuery formBuilder
typeUserAttrs. Define custom attributes for field types with this handy option. Attribute input types are generated using the typeof for the value.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found