mardi 7 février 2017

X-editable: inputClass option not working

Vote count: 0

I can't get X-editable to set the class of the input field. The documentation says we just need to either set the 'inputClass' data attribute or set the corresponding property of the editable object.

Ref: http://ift.tt/2kLKBWF

My markup:

  1. Via a data attribute

    <a class="editableCell" data-inputClass="xEditableVariable" datarl="http://some.url">some text</a>

  2. Via object property

    $(".editableCell") .editable({ type: 'text', success: handleEditFieldSuccess, error: handleEditFieldError, inputClass: 'xEditableVariable' });

Results in the rendered input element:

<input type="text" class="form-control input-sm" style="padding-right: 24px;">

Any ideas what I'm doing wrong or is this a bug in X-editable?

asked 53 secs ago

Let's block ads! (Why?)



X-editable: inputClass option not working

Aucun commentaire:

Enregistrer un commentaire