Hello Paolo,
I think we can consider this a more or less "advanced" feature... and, in fact, you already can use "document.getElementsByClassName", or, better, "document.querySelector", or maybe better... an jQuery selector (remember that jQuery is included in our apps by default) and pick classes like "custom-control-input" and "form-control". With these two classes you can match all the inputs controls in your app's view.
Below is a bit of code using jQuery that may you can find of your interest:
If you need any kind of particular help, please, post it here, Paolo.
yes...
i'm using thos to build it
with jquery is better....
another ask in a select control can we add value and text ?
<select class="mdb-select" disabled> <option value="" disabled selected>Choose your option</option> <option value="paolo1">Option 1</option> <option value="paolo2">Option 2</option> <option value="paolo3">Option 3</option> </select>Hello Paolo,
If we are talking about an AB Select control, we can add new items using the Select Array "Items". If we are talking about an Select control, but not an AB one, we can add more options to the control in various ways, for example, take a look at this StackOverflow thread.
About the Select value, if we are talking about an AB control, in fact we deal with the selected item index and the item text, to say like that, not exactly the value, and can be retrieved like in the below code:
If we are talking about how to get the value of a Select control which is not an AB control, we can do it in a way like this:
If what we want to get is the Text of the selected value, we can write something like the below code:
Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.
Este sitio utiliza "cookies" útiles para almacenar sus preferencias.