Skip to content

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

Merged
fzaninotto merged 1 commit intomasterfrom
filter_transform
Oct 9, 2015
Merged

[RFR] Make Field.transform() work on filters#726
fzaninotto merged 1 commit intomasterfrom
filter_transform

Conversation

@fzaninotto
Copy link
Copy Markdown
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant