Inputs types

Inputs types

klermannklermann Posts: 277Questions: 67Answers: 1

Hello Allan,
I need to severely insert various types of fields in the form of the datatable editor, and I'm cast as to the options that are available, regarding the customization and customization of my fields, which has text, checkbox, radios, etc. Could you give me some guidance?

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
  • klermannklermann Posts: 277Questions: 67Answers: 1

    Thanks Tangerine. I want and need to change the field and customize with css through, via javascript or jquery, where can I insert functions to change this fields?

  • klermannklermann Posts: 277Questions: 67Answers: 1
    edited August 2017

    How to enter the following parameters:
    -> data-plugin = "labelauty"
    -> checked
    In a field in the form editor. ex:
    <input type = "checkbox" class = "labelauty" data-plugin = "labelauty" checked />

  • allanallan Posts: 63,471Questions: 1Answers: 10,467 Site admin

    -> checked

    That will be handled automatically by the value of the row being edited. If it should be checked it will be, if it shouldn't be, it won't be.

    -> data-plugin = "labelauty"

    For the list of options for the checkbox field type you can use:

    [
      {
        value: ...,
        label: ...,
        attr: {
          'data-plugin': 'labelauty'
        }
      },
      ...
    ]
    

    Allan

  • klermannklermann Posts: 277Questions: 67Answers: 1
    edited August 2017

    In other checkbox fields I have the style in the duplicate field as you can see in the image. What can be done?

  • allanallan Posts: 63,471Questions: 1Answers: 10,467 Site admin

    Right click on the element to see what the current styling applied to it is and adjust to suit your needs.

    Allan

  • klermannklermann Posts: 277Questions: 67Answers: 1

  • klermannklermann Posts: 277Questions: 67Answers: 1

    Allan. How should I insert an input with these attributes nof form: <input checked type = "checkbox" aria-label = "Should this synchronize your files?" Data-labelauty = "Synchronize files" />

  • allanallan Posts: 63,471Questions: 1Answers: 10,467 Site admin

    Using the method I described above. The attr object will be applied as attributes.

    Allan

This discussion has been closed.