Open MatanYadaev opened 8 years ago
100% agreed
If you need a temporary "fix". I've done it like this:
$ionicFilterBar.show({
items: $scope.items,
// The fix is here
done: function() {
var input = document.querySelector("ion-filter-bar input.filter-bar-search");
if (input) {
angular.element(input).attr("placeholder", "my i18n search placeholder");
}
},
//
update: function(filteredItems, filterText) {
// do some things
},
expression: function (filterText, value, index, array) {
// do some things
},
cancelText: "my i18n cancel text"
});
@donaldinou it works!
I am using angular-translate, my Ionic app can change languages while running. I need to change placeholder text dynamically. Cancel text I can change without problem in service options, please add placeholder too...