Untitled

 avatar
unknown
plain_text
6 months ago
969 B
4
Indexable
rephrase the below as steps for the documentation on time travel component






 create a flag in appconfig, set the value to true or false depending upon the requireemnet for whether to show the button for TIME TRAVEL or not. 
 On click of the TIME TRAVEL button, modal will open modal & will have a calendar where user can select any past-date ( where the maxDate that can be selected = today), and click SAVE button
 once selected date and SAVE is compleeted the date selected will get stored in the session storage(you can check the value in the developer tool-> application->storage-> session storage, here check for the value of the variable "TimeTravelValue"
 To use this time travel date selected, inside a menthod use the below code snippet:
 
 func getCurrentDate=()=>{
	let fetchedTimeTravelDate = Util.setSessionData('TimeTravelValue')
 }
 
 "fetchedTimeTravelDate" will give you the selected TimeTravel Value from the TimeTravel screen.
 
Editor is loading...
Leave a Comment