Editor website link error

Editor website link error

lonnienlonnien Posts: 28Questions: 0Answers: 0
edited September 2012 in Editor
http://editor.datatables.net/api/Editor.fieldTypes.html gives a 404 not found.

I am now at the point where I want to be able to change field types from straight text input to textarea and selects especially. Also want to be able to set the label width and input field widths. I was hoping this would all be in that bunged up page.

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Where was the link to that page please? I'm actually not sure where it should be pointing, so the context of the link would be important! It could be that it should be pointing at the documentation: http://editor.datatables.net/docs/current/Editor.fieldTypes.html

    Allan
  • lonnienlonnien Posts: 28Questions: 0Answers: 0
    http://editor.datatables.net/api/

    field.type string
    The input control that is presented to the end user. The options available are defined by Editor.fieldTypes and any extensions made to that object.

    That link you gave is the start of what is needed. Thanks. So far date blows up. I think checkbox and radiobutton need some undocumented options. Same for select.

    Text, textarea and password work just fine.
  • lonnienlonnien Posts: 28Questions: 0Answers: 0
    When date is used it generates this:
    Uncaught TypeError: Cannot read property 'RFC_2822' of undefined dataTables.editor.js:4065
  • lonnienlonnien Posts: 28Questions: 0Answers: 0
    OK, from the source I see it requires jquery-ui. You might want to add that to your examples since it is required.

    The calendar looks terrible so there must now be some way to apply formatting. Hopefully in the Editor init block.
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Ah yes - in that can it should be pointing to the documentation for the fieldTypes object - http://editor.datatables.net/docs/current/Editor.fieldTypes.html .

    Thanks for pointing this out - I will ensure that it gets fixed.

    > Uncaught TypeError: Cannot read property 'RFC_2822' of undefined dataTables.editor.js:4065

    Can you give me the initialisation code you are using? This example shows that it should work, but there might be something in your configuration which is causing it to blow up: http://editor.datatables.net/release/DataTables/extras/Editor/examples/dates.html

    Allan
  • lonnienlonnien Posts: 28Questions: 0Answers: 0
    With jquery-ui loaded checkboxes now just show a blank field. Same as above for calendar. Gotta be missing some formatting.
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Ah - cross post timing :-). Yes it does require jQuery UI - this is noted a couple of places, the generated documentation, the date example and the 'date' type documentation:

    http://editor.datatables.net/fields/#date
    > Date input controls (uses jQuery UI's Datepicker, thus jQuery UI is a dependency if using this input).

    I've seen some really nice calendar controls recently which use Bootstrap, they could be integrated with Editor in exactly the same way that I've done for the jQuery UI control. I hope to get a chance to do that some time soon.

    Allan
This discussion has been closed.