Каковы Минимальные Зависимости Spring для Внедрения зависимости?

Чтобы сделать редактируемый другой столбец, вам нужно обновить значение editable_columns, а затем запустить обновление. Проблема в том, что после того, как столбец редактируется, обновление не отключает уже редактируемые столбцы ( demo )

$(function() {

  var $table = $('#table');

  $('button').click(function() {
    $table[0].config.widgetOptions.editable_columns = [3];
    $table.trigger('update');
  });

  $table.tablesorter({
      theme: 'blue',

      widgets: ['editable'],
      widgetOptions: {
        editable_columns: [0, 1, 2],
        editable_autoAccept: true,
        editable_autoResort: false
      }
    })
    // config event variable new in v2.17.6
    .children('tbody').on('editComplete', 'td', function(event, config) {
      var $this = $(this),
        newContent = $this.text(),
        // there shouldn't be any colspans in the tbody
        cellIndex = this.cellIndex,
        // data-row-index stored in row id
        rowIndex = $this.closest('tr').attr('id');
      /*
      $.post("mysite.php", {
          "row"     : rowIndex,
          "cell"    : cellIndex,
          "content" : newContent
      });
      */
    });

});

5
задан Jim Hurne 18 May 2009 в 11:48
поделиться

1 ответ

Просмотрите readme.txt , который поставляется с загрузкой Spring 2.5.

Если у вас нет AOP, JDBC, транзакций или ORM, тогда ваш лучший вариант, вероятно, таков:

  • spring-core
  • spring-beans
  • spring-context
9
ответ дан 14 December 2019 в 04:46
поделиться
Другие вопросы по тегам:

Похожие вопросы: