Knockout-Contrib / Knockout-Contrib/KoGrid

sortInfo, what is the correct syntax, working example needed

Open
#244 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
277
Forks
124
PR merge metrics
No merged PRs in 30d

Description

Various threads show these different syntaxes

  • sortInfo: { field:'myField', direction:'asc'}
  • sortInfo: { column:''myColumn', direction:'asc'}
  • sortInfo: { column: {field:'myField}, direction:'asc'}
  • sortInfo: ko.observable( ...... )

Questions

  • Is the field/column value the column def field value or display name?
  • is the descending value 'desc' or other?

I've tried various combinations and none default the sorted column. maybe a simple jsfiddle example

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing sortInfo syntax and its relationship to the column definition fields, using the referenced threads and any available examples. Done means documenting one correct syntax, clarifying field versus display-name values and the descending value, and providing a working jsfiddle example.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, frontend
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.