官术网_书友最值得收藏!

Renaming the note

This first toolbar feature is also the easiest. It only consists of a text input bound to the title property of the selected note with the v-model directive.

In the toolbar p element we just created, add this input element with the v-model directive and a placeholder to inform the user of its function:

<input v-model="selectedNote.title" placeholder="Note title" />

You should have a functional rename field above the text editor and see the note name change automatically in the note list as you type:

Since we set the deep option on the notes watcher, the note list will be saved whenever you change the name of the selected note.

主站蜘蛛池模板: 呼和浩特市| 横山县| 巩留县| 孟津县| 涞水县| 洪洞县| 梁山县| 阳谷县| 莱州市| 拉孜县| 揭西县| 霍邱县| 腾冲县| 黄山市| 合江县| 香港 | 诸城市| 舒城县| 贵州省| 肃南| 文水县| 彰化县| 富宁县| 如皋市| 廊坊市| 九龙坡区| 方城县| 宿州市| 宁强县| 醴陵市| 都安| 南岸区| 白河县| 西丰县| 阿图什市| 靖江市| 莒南县| 宁远县| 肃宁县| 泸水县| 镶黄旗|