Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

#question# how to set a default value to the range type

See original GitHub issue
 <owl-date-time [disabled]="false" [locale]="zh_cn" [tabIndex]="1" [inputId]="'startdate'"  [defaultMoment]="'2017.09.09 - 2017.09.20'"  [dateFormat]="'YYYY.MM.DD'"  [type]="'calendar'" [showButtons]="true"  [selectionMode]="'range'" >

I tried above , but not work … Anyone has the problem ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

WallenHancommented, Jan 12, 2018

I solved this , when you want a default value using type range ,you must give the ngModel a String[2], or Date[2] which has two items.

DanielYKPancommented, Jan 12, 2018

bind to ngModel

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to set default value of range input to be empty?
I.e. if your current range is 0 to 10, make your range -1 to 10, then default the value to -1; on the...
Read more >
<input type="range"> - HTML: HyperText Markup Language
The value won't be greater than max . The default is 100. The value will be a multiple of step . The default...
Read more >
HTML DOM Input Range defaultValue Property - GeeksforGeeks
The Input Range defaultValue Property in HTML DOM is used to set or return the default value of the slider control.
Read more >
HTML input type="range" - W3Schools
The <input type="range"> defines a control for entering a number whose exact value is not important (like a slider control). Default range is...
Read more >
setting ranges as default values for a selection screen value
i have a selection screen parameter s_yywrpc. For this s_yywrpc i have to set some range of values as default values. Can u...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found