angular-bootstrap-duallistbox icon indicating copy to clipboard operation
angular-bootstrap-duallistbox copied to clipboard

info-all = 'false' attribute not working

Open BasvdM opened this issue 9 years ago • 4 comments

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.

BasvdM avatar Sep 09 '15 09:09 BasvdM

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

Its work for me. Cya

fabiogel avatar Mar 23 '16 14:03 fabiogel

Hi,

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

What should I do with the soft hyphen?

Gr. Bas

BasvdM avatar Mar 23 '16 14:03 BasvdM

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

Remove the dot in the especial character.

fabiogel avatar Apr 15 '16 18:04 fabiogel

Can I see a live demo of the issue please?

frapontillo avatar Jun 14 '16 12:06 frapontillo