Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Repeater Render Dataparams #901

Merged
merged 1 commit into from
Dec 3, 2014
Merged

Conversation

kevinparkerson
Copy link
Contributor

Fixes #895 by allowing repeater render method to be passed dataSourceOptions which are then applied on top of whatever would be passed to the dataSource normally

…thod to be passed dataSourceOptions which are then applied on top of whatever would be passed to the dataSource normally
@kevinparkerson kevinparkerson added this to the 3.4.0 milestone Dec 3, 2014
@kevinparkerson
Copy link
Contributor Author

You can pass dataSourceOptions to the render method like so:

$('#myRepeater').repeater('render', { dataSourceOptions: {
    pageIndex: 1,
    pageSize: 20,
    sortProperty: 'name',
    sortDirection: 'asc',
    search: 'term'
}});

@mbeard
Copy link
Contributor

mbeard commented Dec 3, 2014

Looks good.

kevinparkerson pushed a commit that referenced this pull request Dec 3, 2014
@kevinparkerson kevinparkerson merged commit b4d31bd into master Dec 3, 2014
@kevinparkerson kevinparkerson deleted the repeater-render-dataparams branch December 3, 2014 23:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Repeater: Optionally allow datasource parameters to be updated on render.
2 participants