jQWidgets Forums

jQuery UI Widgets Forums Scheduler Button template

This topic contains 3 replies, has 2 voices, and was last updated by  crissi 8 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Button template #86155

    crissi
    Participant

    Hello,

    I’d like to know how to access the add, print or delete buttons to give them a template…

    Thanks a lot!
    Chris

    Button template #86176

    Hristo
    Participant

    Hello Chris,

    Which example exactly you try to manipulate?
    If it is possible please provide small example. (better in https://www.jseditor.io/)

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Button template #86178

    crissi
    Participant

    Hello Hristo,

    nothing special. I’d like, for example, to give the delete button of the normal editDialog the danger-template (just to get the button in red).
    I’ve tried
    $(“#scheduler”).on(‘editDialogCreate’, function(event){
    $(“button:contains(‘Eliminar’)”).addClass(“jqx-danger-orange”);
    });
    and as i can see, the button has the class after, but it’s not red.
    Maybe it has to be rerendered, but maybe there is an easier way somewhere in
    editDialogCreate: function (dialog, fields, editAppointment) {}

    Thanks

    Button template #86202

    crissi
    Participant

    finally I could find it:

    fields.cancelButton.jqxButton({template: ‘inverse’});
    fields.deleteButton.jqxButton({template: ‘danger’});
    fields.saveButton.jqxButton({template: ‘success’});

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.