-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finally implementing Grid #93
Conversation
I must also add that this PR fixes HTML-escaping in Table. |
$this->setAttr('href', $this->app->url($url)); | ||
|
||
return $this; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to View
Actually - docs will come in the final implementation of Grid, which I'm yet to PR. |
fixed this once few days ago, but it appeared again :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something is wrong with multiple formatters in columns.
Besides that all looks great!
|
||
$output[] = $column->getCellTemplate($field); | ||
// If multiple formatters are defined, use the first for the header cell |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If data cell has multiple formatters, then all of them should be used here. This is not header cell here !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*/ | ||
public function jsChecked() | ||
{ | ||
return new \atk4\ui\jsExpression(' $('.$this->table->jsRender().").find('.checked.".$this->class."').closest('tr').map(function(){ ". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we use simpler JS syntax here? something like:
$(...).find('.checked.xxx').closest('tr').get(0).data('id');
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll refactor those later with JSLib. Will create a separate issue.
Merge #74 first.
This PR implements a new Grid class with a bunch of features: