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

default settings #79

Open
acerov opened this issue May 13, 2016 · 1 comment
Open

default settings #79

acerov opened this issue May 13, 2016 · 1 comment

Comments

@acerov
Copy link

acerov commented May 13, 2016

Hi,

Thnx for addon, I have a question, simple one I hope ;)
How to set default settings so that I do not have to repeat it over and over again in each template.

For example I would like "Today button" to be allways displayed and would like to avoid repeating that option {{bs-datetimepicker showTodayButton=true}}.

Thnx

@acerov acerov changed the title global default settings default setting May 13, 2016
@acerov acerov changed the title default setting default settings May 13, 2016
@sylwiaeb
Copy link

@acerov You can wrap {{bs-datetimepicker showTodayButton=true}} with your own component, lets say {{my-datepicker}} and pass properties from my-datepicker to bs-datetimepicker ex.

In {{my-picker}} template:

    {{bs-datetimepicker showTodayButton=true}} // don't forget other properties that you normally call with `{{bs-datetimepicker}}`

and you each time you call {{my-picker}} it will run run {{bs-datetimepicker}} with showTodayButton=true

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

No branches or pull requests

2 participants