Eduardo Zuza

    Eduardo Zuza

    1 month ago
    Please, how to put the items inside the select for the user to choose an option? compose-web
    Div(attrs = { style { id("seAdmRet"); display(DisplayStyle.Block) }; classes("form-group") }) {
                Span { Text("Opção AdmRet - 1") }
                Select(attrs = { classes("custom-select", "mr-sm-2", "dlg-100") }
                ) {                
    //                TextInput("ola1","GD")
    //                Text( "opa")
    //                 Text("olá")
                }
            }
    Tristan

    Tristan

    1 month ago
    The same way you would do in HTML 😉 The correct tag is
    option
    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select
    Eduardo Zuza

    Eduardo Zuza

    1 month ago
    Select(attrs = { classes("custom-select", "mr-sm-2", "dlg-100") }
    ) {
        Option(
            value = "GD",
            attrs = ({ value("GD") }),
            content = ({ Text("AdmRetGD")} )
        )
    
        Option(
            value = "7",
            attrs = ({ value("7") }),
            content = ({ Text("32")} )
        )
    }