Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

info-all = 'false' attribute not working #13

Open
BasvdM opened this issue Sep 9, 2015 · 4 comments
Open

info-all = 'false' attribute not working #13

BasvdM opened this issue Sep 9, 2015 · 4 comments

Comments

@BasvdM
Copy link

BasvdM commented Sep 9, 2015

Hi!

Thanks for creating this angular version of the duallistbox.

I tried to use the info-all = 'false' setting, but instead of hiding the info text it shows the text 'false' above the dual list box.

I changed the code myself by adding an extra transformFn to the InfoAll attribute.

    var getFalseOrStringValue = function (attributeValue) {
        if (attributeValue === false || attributeValue === 'false') return false;
        return attributeValue;
    };

...and...

        'infoAll': {
          changeFn: 'setInfoText',
          defaultValue: 'Showing all {0}',
          transformFn: getFalseOrStringValue
        },

I am not keen on making own changes. If you could provide a fix I would be very gratefull.

@fabiogel
Copy link

Hello BasvdM! You can use a special character as '&shy.;'(without dot).

Its work for me. Cya

@BasvdM
Copy link
Author

BasvdM commented Mar 23, 2016

Hi,

Thanks for your reply. Unfortunately I don't understand your answer....

What should I do with the soft hyphen?

Gr. Bas

@fabiogel
Copy link

fabiogel commented Apr 15, 2016

Wow, srry! Use info-all="&s.hy;"

Remove the dot in the especial character.

@frapontillo
Copy link
Owner

Can I see a live demo of the issue please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants