Skip to content

Instantly share code, notes, and snippets.

@eaccmk
Last active September 12, 2021 10:19
Show Gist options
  • Save eaccmk/b78146edfdafd77960782ce3bd656c02 to your computer and use it in GitHub Desktop.
Save eaccmk/b78146edfdafd77960782ce3bd656c02 to your computer and use it in GitHub Desktop.
Fitbit app companion (mobile) setting to demo how to select 1 item from a list
// author : https://github.com/eaccmk
// created : sep-2021
function mySettings(props) {
return (
<Page>
<Select
label={`Click for Selection`}
settingsKey="selection"
options={[
{ name: "1. Select this One" },
{ name: "2. Or this" },
{ name: "3. may be this " },
]}
/>
</Page>
);
}
registerSettingsPage(mySettings);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment