Jester
Jester

Reputation: 3317

Smart-Table is it possible to filter on blur

In the AngularJs module Smart-Table is it possible to force st-search="column" to only trigger on blur?

Upvotes: 0

Views: 210

Answers (2)

K Scandrett
K Scandrett

Reputation: 16540

The st-input-event attribute will override the default to trigger on blur

<input st-search="firstName" st-input-event="blur" type="search"/>

Upvotes: 1

Fabio Picheli
Fabio Picheli

Reputation: 959

You can create a custom input like this:

<input st-search="firstName" placeholder="search for firstname" class="input-sm form-control" type="search" ng-model-options="{ updateOn: 'blur' }" />

with ng-model-options you can setup alot of configuration and one of these is the updateOn, also you can use in a entire form!

Upvotes: 2

Related Questions