Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Select a Date in Settings

Hi guys,

 

Has anyone got a suggestion as to how to select a date in the companion settings in settings.jsx?

 

If a full date picker is too hard, is there a way to dynamically show the last 60 days in a select?

 

Thanks.

Best Answer
0 Votes
2 REPLIES 2

I just answered this in another post, but here it is for reference.

 

You can get a date picker using the <TextInput> in the index.jsx file in Settings.  Just add the type="date" attribute.

 

Also, just for reference, here are other types, but just know, not all of them are supported by Fitbit.

 

 

 

<TextInput
          label="Day"
          title="Day input"
          settingsKey="day"
          type="date" />

 

 

 

Best Answer
0 Votes

Awesome , thanks James.

Best Answer
0 Votes