@fabwcie/free-drawing / components/tools/SaveButton
components/tools/SaveButton
Classes
SaveButton
Defined in: packages/free-drawing/src/components/tools/SaveButton/SaveButton.ts:11
Button of header saving the drawing while auto save is off (saveButton option): a dot shows changes not saved yet
Constructors
Constructor
new SaveButton(
drawer):SaveButton
Defined in: packages/free-drawing/src/components/tools/SaveButton/SaveButton.ts:23
Create the button in header, updated when changes are saved or not, auto save or language changes
Parameters
drawer
Drawer saved by the button
Returns
Properties
$button
$button:
HTMLButtonElement
Defined in: packages/free-drawing/src/components/tools/SaveButton/SaveButton.ts:17
Button saving the drawing (saveNow), its name tells when changes are not saved
$container
$container:
HTMLDivElement
Defined in: packages/free-drawing/src/components/tools/SaveButton/SaveButton.ts:15
Header element of the button, hidden while auto save is on and in zen mode
drawer
drawer:
Drawer
Defined in: packages/free-drawing/src/components/tools/SaveButton/SaveButton.ts:13
Drawer saved by the button
Methods
update()
update():
void
Defined in: packages/free-drawing/src/components/tools/SaveButton/SaveButton.ts:45
Shown without auto save, dot and name telling changes not saved yet
Returns
void