Editor Custom Form - Input below legend

Editor Custom Form - Input below legend

fmshighcompanyfmshighcompany Posts: 11Questions: 4Answers: 0

Hi there!
I'm using the example Custo Form, with bootsrap-4, but I need input fields below Caption, i.e. in col-12 not col-8.
Inspecting Element says editor creates come "DTE" elements:
..div data-dte-e="input" class="col-lg-8"..
How do I control this to generate col-lg-12 in Caption and in Input field?
Thanks for any help
Fracnsico

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Use:

    $.extend( true, $.fn.dataTable.Editor.classes, {
        "field": {
            "wrapper": "DTE_Field form-group row",
            "label":   "col-lg-12 col-form-label",
            "input":   "col-lg-12"
        }
    } );
    

    Allan

This discussion has been closed.