DataTable RTL

DataTable RTL

raspoteenraspoteen Posts: 16Questions: 8Answers: 0

Hi, I want to translate this modal to RTL,
so the labels should be on the right and the input fields should be on the left,
How to do that ??

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,697Questions: 1Answers: 10,102 Site admin

    It looks like Bootstrap doesn't yet have built in support for RTL. So you can add dir="rtl" in the html tag, but the form won't layout correctly since you are using the Bootstrap theme.

    What I can find suggests that you use https://github.com/parsmizban/RTL-Bootstrap or wait for Bootstrap 4.1 or 4.2. Either way, this is something for Bootstrap.

    Allan

  • raspoteenraspoteen Posts: 16Questions: 8Answers: 0

    @allan is there any embedded solution with dataTables ?
    and how to change the words in the labels ???

  • allanallan Posts: 61,697Questions: 1Answers: 10,102 Site admin
    Answer ✓

    The words are defined by the field.label option. DataTables core supports RTL, and I believe Editor does as well, but I can't read RTL languages myself, so any feedback you have is welcome. You could try using the DataTables CSS rather than the Bootstrap integration.

    Allan

This discussion has been closed.