1.0.28 • Published 2 years ago

ember-autostash-modifier v1.0.28

Weekly downloads
8,130
License
MIT
Repository
github
Last release
2 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

2 years ago

1.0.27

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.9

2 years ago

1.0.20

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.8

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

0.1.20

4 years ago

0.1.19

4 years ago

0.1.18

4 years ago

0.1.15

4 years ago

0.1.16

4 years ago

0.1.17

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago