Why is there no api documentation for the mdb.Input api?


Topic: Why is there no api documentation for the mdb.Input api?

kromley asked 3 years ago

Expected behavior Docs are good enough to use product without having to dig through the code.

Actual behavior While the api for mdb.Select is in the documents, there is nothing about mdb.Input. This came up when I had javascript create additional form fields (floating) that needed to be initialized.

A further problem is that "new mdb.Select" takes a parameter of the "select" element, but if you pass in an "input" element to "new mdb.Input" it has an illegal operation exception that doesn't provide much info. If you dig through the code you can see the mdb.Input expects the parent of the "input" field NOT the "input" field.

It is working now, but thought I would write so I might save another unhappy user from wasting time debugging this.

Resources (screenshots, code snippets etc.)


Marcin Luczak staff answered 3 years ago

Hi,

By the mdb.Input and mdb.Select initializations I can see that you refer to the MDB5, and if that's true, then Input documentation provides dynamic input initialization section that shows how to initialize input dynamically.

If setting that in the 'Overview' and mentioning that in the 'API' section is confusing compared to the Select component, please let us know and we will discuss this issue internally.

Keep coding, Marcin


szaiftamas pro premium priority commented 2 years ago

Hi Marcin,

You are right I can find the mdb.Input().init(), but the mdb.Input().update() is not in the documentation, even though that is what I need. I found it in a support comment, and working well!

Thanks, Tamás


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: MDB4 4.19.2
  • Device: Any
  • Browser: Any
  • OS: Mac
  • Provided sample code: No
  • Provided link: No
Tags