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

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.

主站蜘蛛池模板: 长垣县| 嵩明县| 和静县| 花莲市| 台东县| 眉山市| 潍坊市| 台州市| 武邑县| 安龙县| 合肥市| 肃北| 白玉县| 凤翔县| 兴安县| 育儿| 抚顺县| 闻喜县| 内乡县| 桐梓县| 汉沽区| 东乡县| 红河县| 仲巴县| 手机| 镇巴县| 阳高县| 万年县| 望谟县| 黄陵县| 镇雄县| 临猗县| 竹北市| 宁蒗| 宜兰县| 平果县| 通许县| 永修县| 枣庄市| 来安县| 怀安县|