NEWS
Listeneingabe im Adapter Config - Auswahlmenü in Liste
-
Hallo, vielleicht kann mir einer der Experten helfen.
Ich habe bei meinem Adapter-Parameter eine dynamische Eingabeliste. die funktioniert soweit sehr gut.
Code (Auszug) in index_m.html:<div class="col s12" id="devices"> <a class="btn-floating waves-effect waves-light blue table-button-add"><i class="material-icons">add</i></a> <div class="table-values-div"> <table class="table-values"> <thead> <tr> <th data-name="state" style="width: 25%" data-type="text" class="translate">state</th> <th data-name="state_type" style="width: 10%" data-type="text" class="translate">state_type </th> <th data-buttons="delete up down" style="width: 120px"></th> </tr> </thead> </table> </div> </div>Jetzt möchte ich gerne für den 2. Eintrag (state_type) keinen Freitext eingeben lassen, sondern ein Auswahlmenü mit 2-3 Einträgen eröffnen.
Weiß jemand wie das geht?
-
Hallo, vielleicht kann mir einer der Experten helfen.
Ich habe bei meinem Adapter-Parameter eine dynamische Eingabeliste. die funktioniert soweit sehr gut.
Code (Auszug) in index_m.html:<div class="col s12" id="devices"> <a class="btn-floating waves-effect waves-light blue table-button-add"><i class="material-icons">add</i></a> <div class="table-values-div"> <table class="table-values"> <thead> <tr> <th data-name="state" style="width: 25%" data-type="text" class="translate">state</th> <th data-name="state_type" style="width: 10%" data-type="text" class="translate">state_type </th> <th data-buttons="delete up down" style="width: 120px"></th> </tr> </thead> </table> </div> </div>Jetzt möchte ich gerne für den 2. Eintrag (state_type) keinen Freitext eingeben lassen, sondern ein Auswahlmenü mit 2-3 Einträgen eröffnen.
Weiß jemand wie das geht?
@tp1de Über Discord habe ich die Lösung erhalten. Falls es jemandem interessiert in der Tabellenspalte:
<th data-name="state_type" style="width: 10%" data-type="select" data-default="number"data-options="number;string" class="translate">state_type</th>
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login