-
Notifications
You must be signed in to change notification settings - Fork 44
FLUT-5958- [Feature] Prepare the UG documentation of the individual swiping and infinity height and width features in DataGrid #37
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
Conversation
Build Status: INPROGRESS 🔃 |
CI Status: FAILURE ❌ |
Build Status: INPROGRESS 🔃 |
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 have added my concerns as comments.
Flutter/datagrid/scrolling.md
Outdated
@@ -685,5 +685,75 @@ class _EmployeeDataSource extends DataGridSource { | |||
{% endhighlight %} | |||
{% endtabs %} | |||
|
|||
## Set height and width of DataGrid based on rows and columns available | |||
|
|||
The `SfDataGrid` provides support to set the height and width of `DataGrid` based on rows and columns available by setting the [shrinkWrapRows] and [shrinkWrapColumns] as `true`. |
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.
By default, the DataGrid sets its height or width as 300 if its height or width is infinity. Users can sets the height or width based on the number of rows or columns available in DataGrid by using the shrinkWrapRows
or shrinkWrapColumns
property respectively.
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.
Modified
Flutter/datagrid/scrolling.md
Outdated
|
||
The `SfDataGrid` provides support to set the height and width of `DataGrid` based on rows and columns available by setting the [shrinkWrapRows] and [shrinkWrapColumns] as `true`. | ||
|
||
* [shrinkWrapRows]: Whether the extent of the vertical scroll view should be determined by the number of rows available.By default, if the DataGrid’s parent height is infinity, height is set as 300. If `shrinkWrapRows` property is true, the height is expanding to view all the rows available in DataGrid. |
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.
This is not needed. Remove 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.
Removed
Flutter/datagrid/scrolling.md
Outdated
|
||
* [shrinkWrapRows]: Whether the extent of the vertical scroll view should be determined by the number of rows available.By default, if the DataGrid’s parent height is infinity, height is set as 300. If `shrinkWrapRows` property is true, the height is expanding to view all the rows available in DataGrid. | ||
|
||
* [shrinkWrapColumns]: Whether the extent of the horizontal scroll view should be determined by the number of columns available.By default, if the DataGrid’s parent width is infinity, width is set as 300. If `shrinkWrapColumns` property is true, the width is expanding to view all the columns available in DataGrid. |
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.
This is not needed. Remove 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.
Removed
Flutter/datagrid/swiping.md
Outdated
## Set different swipe offset for right and left swiping | ||
|
||
You can set the different swipe offset based on swipe direction by using the `setSwipeMaxOffset` method in `onSwipeStart` callback.The below example shows how to set individual swipe offset based on swipe direction when swiping a data row from `startToEnd` or `endToStart`. |
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.
You can set the different swipe offset based on swipe direction by using the onSwipeStart
callback and pass the required swipe offset to the setSwipeMaxOffset method from onSwipeStart
callback's argument.
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.
Modified
Build Status: INPROGRESS 🔃 |
CI Status: FAILURE ❌ |
rebuild |
Build Status: INPROGRESS 🔃 |
Build Status: INPROGRESS 🔃 |
…lutter-docs into FLUT-5958-datagrid-vol4-ug # Conflicts: # Flutter/datagrid/scrolling.md
Build Status: INPROGRESS 🔃 |
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.
Changes are fine.
Flutter/datagrid/scrolling.md
Outdated
## Set height and width of DataGrid based on rows and columns available | ||
|
||
By default, the DataGrid sets its height or width as 300 if its height or width is infinity. Users can sets the height or width based on the number of rows or columns available in DataGrid by using the `shrinkWrapRows` or `shrinkWrapColumns` property respectively. |
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.
By default, the DataGrid sets it to 300, if the height or width of the DataGrid is infinity. Users can set the height or width based on the number of rows or columns available in DataGrid by using the shrinkWrapRows
or shrinkWrapColumns
property, respectively.
Flutter/datagrid/swiping.md
Outdated
 | ||
|
||
## Set different swipe offset for right and left swiping |
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.
Set different swipe offsets for right and left swiping
Flutter/datagrid/swiping.md
Outdated
## Set different swipe offset for right and left swiping | ||
|
||
You can set the different swipe offset based on swipe direction by using the `onSwipeStart` callback and pass the required swipe offset to the `setSwipeMaxOffset` method from `onSwipeStart` callback's argument. |
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.
You can set the different swipe offsets based on swipe direction by using the onSwipeStart
callback and passing the required swipe offset to the setSwipeMaxOffset
method from the onSwipeStart
callback's argument.
Build Status: INPROGRESS 🔃 |
Build Status: INPROGRESS 🔃 |
Description