JulioWar / jw-bootstrap-switch-ng2

Bootstrap Switch for Angular 2+
https://juliowar.github.io/jw-bootstrap-switch-ng2/
MIT License
43 stars 14 forks source link

configure available attributes once #30

Open ahadjithoma opened 5 years ago

ahadjithoma commented 5 years ago

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [X] feature request

It would be very useful if we could configure the bSwitch in a single file for all instances, using the available attributes.

For example: if i can configure switch-on-text="yes" and switch-off-text="no" to a configuration file, every <bSwitch></bSwitch> in my application should have the yes/no label without writing it every time.

What do you think?

JulioWar commented 5 years ago

Thanks @andreash92. Yes It's a good feature. I going to work on that but I don't promise that will be so soon because I am currently working on something else.