form-js / forms.js

Fully featured javascript form builder
https://formsjs.io/
8 stars 4 forks source link

Select field optionsList as an funtion #75

Closed Trilmatic closed 6 days ago

Trilmatic commented 2 weeks ago

We need to enhance the select field, it should be possible to pass function into optionsList. This function should have optional search query passed from the input if the field is enhanced and uses tom-select. This query should be null by default. The function should return a array of select options Option[].

There should be internal public function on the class to reload the options in the function is set. Also it should reaload the options when zou search in the tom-select and pass the query into the function.