Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[RFR] Make Field.transform() work on filters #726

Merged
merged 1 commit into from
Oct 9, 2015
Merged

Conversation

fzaninotto
Copy link
Member

listView.filters([
    nga.field('q')
        .label('')
        .pinned(true)
        .template('<div class="input-group"><input type="text" ng-model="value" placeholder="Search" class="form-control"></input><span class="input-group-addon"><i class="glyphicon glyphicon-search"></i></span></div>')
        .transform(v => v && v.toUpperCase()) // transform the entered value before sending it as a query parameter
        .map(v => v && v.toLowerCase()), // map the query parameter to a displayed value in the filter form
])

fzaninotto added a commit that referenced this pull request Oct 9, 2015
[RFR] Make Field.transform() work on filters
@fzaninotto fzaninotto merged commit b8cea76 into master Oct 9, 2015
@jeromemacias jeromemacias deleted the filter_transform branch October 10, 2015 21:27
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant