1.0.28 • Published 3 years ago

ember-autostash-modifier v1.0.28

Weekly downloads
8,130
License
MIT
Repository
github
Last release
3 years ago

ember-autostash-modifier

A modifier for stashing changes, binding those changes to a key, and restoring those changes based on that key.

View Documentation Here

Useful for chat apps, where you'd want to persist incomplete messages on a contact's page while the user navigates between other contacts before finishing and submitting a message. Also useful if you want to bind component data based on the URL.

Compatibility

  • Ember.js v3.15 or above

Installation

ember install ember-autostash-modifier

Usage

See documentation for interactive demo

Usage in emberclear.io:

<textarea
  {{autostash this.text when=@to.id restore=this.updateText}}

  {{!-- other useful modifiers --}}
  {{autofocus this.isDisabled}}
  {{autoresize this.text}}

  {{on 'input' this.onInput}}
  {{on 'keypress' this.onKeyPress}}

  rows='1'
  value={{this.text}}
/>

Other useful modifiers:

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

1.0.28

3 years ago

1.0.27

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.9

3 years ago

1.0.20

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.8

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

0.1.20

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.15

5 years ago

0.1.16

5 years ago

0.1.17

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago