Skip to content

Does not play nice with x-editable #56

@mlt

Description

@mlt

While best_in_place works more or less, it would be nice to make x-editable integrate tightly. There are few things that need to go in place as of now.

  1. It would be nice if tabulatr triggered some event once table is rendered. This is necessary to trigger $('.editable').editable();. Perhaps $('#'+this.id).trigger('tabulatr:response'); somewhere here will do it.

  2. I was able to use inline only method with $.fn.editable.defaults.mode = 'inline' as I get JS error otherwise. This however distorts table in weird way, namely, td is wider that span inside. It somewhat can be mitigated with

table.tabulatr_table {
  table-layout: fixed;
}

Loading tooltip & popover plugins for bootstrap resolves popup issue.

  1. Each block in data proxy need to contain xeditable? definition as required by x-editable-rails. AFAIK we neither can include stuff into a block nor to expect anything from instance_exec :( I wonder if an issue should be filed against x-editable-rails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions