Skip to content

improve HtmlTable title parser to parse other types #1041

@jakubwolny

Description

@jakubwolny

Current title parser return just "title" attribute:

convert: function(){
    return this.title;
}

But what if I have number or date type stored in attribute? There is no way to achieve sensible sorting.
My proposition:

  • title should not be the "parser" because it does not parse anything.
  • add "getter" parameter to sortable width default behavior:
return this.get('text')

As a parameter one could pass:

  • function - which return proper value
  • string - in this case function returning this attribute will be created

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

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