bootstrap label class

bootstrap label class

Andreas S.Andreas S. Posts: 207Questions: 73Answers: 4

Hi,

I tried to change the Style of the bootstrap modal. The label class is set to col-lg-4 control-label instead of DTE_Label . I want to set the label class new or add an addional class name to the label, but that is not possible, because if I write this code:

    edit_mlist = new $.fn.dataTable.Editor({
        ajax: 'assets/lib/evm_server_processing.php',
        table: '#meetlist',
        display: 'bootstrap',
        fields: [{
                label: 'Event Title:',
                className: 'label-width',
            name: 'm_title',
            data: 'ltv_events.m_title'
            }

the class name would be inserted in <div class="DTE_Field DTE_Field_Type_text DTE_Field_Name_m_title label-width">

I have read something in the Forum about $.fn.dataTable.Editor.display.bootstrap.node(), but I am not sure that help me and i did not find any Manuel about this function.

How can I changed the Label classes?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,740Questions: 1Answers: 10,111 Site admin

    You can set the label class using the $.fn.dataTable.Editor.classes.field.label property.

    Regards,
    Allan

  • allanallan Posts: 61,740Questions: 1Answers: 10,111 Site admin

    Oh - and make sure you change that value before initialising Editor. Any changes after you initialise it won't be picked up!

    Allan

  • Andreas S.Andreas S. Posts: 207Questions: 73Answers: 4

    Is it possible to set label classes for each Label tag different?
    I have split the editor in 50% and one of the Input field should have 100% because the data of this field are very long and is not good readable if I use for this field the 50% split.

  • allanallan Posts: 61,740Questions: 1Answers: 10,111 Site admin
    Answer ✓

    Is it possible to set label classes for each Label tag different?

    No.

    However, you might be interested in the optional demonstrated here.

    Alternatively, you can use CSS tp specifically target one or more of the fields.

    Allan

This discussion has been closed.