SaveButton
Save Buttons allow for saving information held in a save container.
![Screenshot of component SaveButton SaveButton](/static/c7aa4232029fa49fde1ab6f3edb35729/SaveButton-for-table-of-contents-desktop.png)
Usage
Place the SaveButton
inside a SaveContainer
along with other components.
When other components (buttons, sliders, checkboxes etc) are manipulated by the user, the value is held until the SaveButton
is used.
import { SaveContainer } from '@electricui/components-core'import { Button, SaveButton } from '@electricui/components-desktop-blueprint'<SaveContainer> <Button writer={state => { state.bright = 255 }} > Set brightness to 255 </Button> <SaveButton>Save</SaveButton></SaveContainer>
The SaveButton accepts the same cosmetic props as a regular Button.
Also like a button, using the boolean prop noAck
allows for automatic acknowledgement to be disabled.