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

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.

主站蜘蛛池模板: 昌吉市| 东山县| 申扎县| 鸡东县| 方山县| 惠安县| 台中市| 蒲城县| 鹤壁市| 明水县| 宁明县| 睢宁县| 海南省| 青州市| 玛曲县| 松江区| 凤翔县| 阿巴嘎旗| 高碑店市| 个旧市| 望奎县| 广南县| 贵德县| 通州市| 理塘县| 密云县| 西平县| 五寨县| 永安市| 谷城县| 绿春县| 和平区| 运城市| 北安市| 兰西县| 汾西县| 建德市| 巴彦淖尔市| 德阳市| 雅安市| 恩平市|