melistik / vaadin-grid-util

simplify the use of vaadin's grid and add features
https://vaadin.com/directory/component/gridutil
MIT License
32 stars 21 forks source link

suggested fix for https://github.com/melistik/vaadin-grid-util/issues/35 #36

Closed dk2k closed 7 years ago

dk2k commented 7 years ago

Hi guys, I decided to suggest an approach to use custom messages. I know you may consider ticket 35 as a non-issue. The usage is as follows (additional calls):

    Map<String, String> customMessages = new HashMap<>();
    customMessages.put("trueCaption", "есть"); // sample messages in Russian
    customMessages.put("falseCaption", "отсутствует");
    filter.setCustomMessages(customMessages);

Backwards compatibility was one of my objectives. If you agree with this approach, I'm going to spread it.

Cheers

melistik commented 7 years ago

i've implemented already a solution for it and now it's incompatible with grid v7